
Introduction to the Docker Hands On Practice Course
Learn to list both running and stopped containers in Docker using docker ps and docker ps -a, including exited ones, illustrated with BusyBox containers.
Create an Ubuntu container, then copy the bootstrap.log file from the container to your local machine using docker cp, and verify with ls.
Create a container from an image, then kill it using the docker kill command instead of stop. List containers with docker ps to confirm it disappears.
Display the ubuntu image history by listing images, pulling ubuntu, then using docker history to show the image lineage.
Learn to convert a running Docker container into a new image using Docker commit, including installing software like Apache2 and verifying changes with a subsequent container.
Delete a docker network from your local machine by running docker network rm network-id or name, then verify it's gone with docker network ls.
Execute docker volume prune to remove all unused volumes, confirming with y; this clears unused volumes from your system.
Create a Dockerfile using ubuntu as base image, add a DevOps label, and set an environment variable pass with the value my pass, then build and tag as my ubuntu:1.
Create your first GitLab project, name it autopilot devops, set a private visibility, and optionally add a readme, while exploring deployment targets such as Kubernetes, self-managed containers, or Heroku.
Create and commit a docker file and an index.html in a GitLab project, using a base http image and injecting the index page into the image, prepping for GitLab CI/CD.
Docker Practice Questions | Practice Docker Hands On 50 Task
Docker Hands On Questions | Docker Practical Tasks | 50 Hands On Tasks | Docker Commands, Docker Networks, Docker Image, Docker Volumes and Docker Files
This is a complete hands on course where you will be asked to work on 50 Docker based tasks, all the questions will be given with proper solution and description section.
Below are the topics that will be covered under this course:
docker run
docker ps
docker rm
docker stop/start
docker cp
docker exec
docker rename
docker pull
docker save/load
docker log
docker stats
docker top
docker version
docker inspect
docker port
docker kill
docker list images
docker inspect
docker rmi
docker prune
docker history
docker commit
docker n/w ls
docker n/w inspect
docker n/w create
docker n/w disconnect
docker n/w attach
docker n/w create host
docker n/w remove
docker n/w prune
docker vol. ls
docker vol. create
docker vol. rm
docker vol. prune
docker vol. bind
docker vol. attach
#DockerFiles Questions covers:
FROM
LABEL , ENV
RUN
COPY
CMD
BUILD/TAG
In case you still have any query, you can reach out to us in the Q/A Section over Udemy, We will be happy to help !!
All the best and Keep Learning !!
Thanks,
AutoPilot DevOps Team
Docker Hands On Questions | Docker Practical Tasks | 50 Hands On Tasks | Docker Commands, Docker Networks, Docker Image, Docker Volumes and Docker Files
You can also refer to our other courses as well:
Bash Scripting Practice Questions ( 100 Tasks | Hands On )
Ansible Practice Tasks | 50 Ansible Playbooks Hands On Tasks