Docker Beginner Free course, 4 parts
Docker from zero
Install Docker, run containers, build images and keep data, networks and disk under control.
For anyone who wants to stop saying "it works on my machine".
- 20 lessons
- 5h 38m total time
- 4 hands-on labs
- 2 diagrams
- 20 quizzes
Course complete
You finished Docker from zero
All 20 lessons done on . Share it, print the certificate, or start the next course below.
Levelrail Learn Certificate of completion Completed Docker from zero on Levelrail Learn 20 lessons, 5h 38m of guided practice levelrail.com/learn/courses/docker-from-zero/
What you will be able to do
- Run and inspect containers
- Write a Dockerfile and use Compose
- Persist data with volumes
- Debug networking and restarts
Syllabus
20 lessons in 4 parts, 5h 38m in total
Part 1
Lessons 1 to 5
5 lessons, 1h 37m 0/5- Install Docker on Ubuntu Up next Done Docker Engine is installed on Ubuntu by adding Docker's official apt repository and installing the docker-ce packages. 22 min Beginner Lab Quiz
- Run your first Docker container (docker run) Up next Done A container is a running instance of an image; docker run pulls the image if needed and starts the container. 15 min Beginner Lab Quiz
- Docker Compose basics: run web and database with compose.yaml Up next Done Docker Compose runs several containers together from one YAML file that describes the services, ports and volumes. 18 min Beginner Lab Quiz
- Docker volumes and persistent data: named volume vs bind mount Up next Done A Docker volume is storage managed by Docker that outlives any container that uses it. 20 min Beginner Lab Quiz
- Write your first Dockerfile and build an image with docker build Up next Done A Dockerfile is a text file of instructions that tells Docker how to build an image for your app. 22 min Beginner Quiz
Part 2
Lessons 6 to 10
5 lessons, 1h 39m 0/5- Docker networks explained: connect containers by name Up next Done A Docker network is a virtual network that lets containers on the same host reach each other, and the outside world, by rules Docker sets up. 20 min Beginner Diagram Quiz
- Docker image vs container vs registry, and how tags work Up next Done An image is a read-only template, a container is a running instance of an image, and a registry is a server that stores and shares images. 22 min Beginner Diagram Quiz
- Free disk space with docker system prune (safely) Up next Done Docker prune commands remove unused objects such as stopped containers, dangling images and build cache to free disk space. 15 min Beginner Quiz
- Docker healthcheck: add HEALTHCHECK and read container health Up next Done A Docker healthcheck is a command Docker runs inside a container on a schedule to decide whether the app is healthy, which is a stronger claim than running. 20 min Beginner Quiz
- Docker Compose environment variables: environment, env_file, .env Up next Done Compose passes settings to a container through the environment key or an env_file, and fills ${VAR} placeholders in compose.yaml from the shell or a project .env file. 22 min Beginner Quiz
Part 3
Lessons 11 to 15
5 lessons, 1h 20m 0/5- Docker restart policy: always vs unless-stopped vs on-failure Up next Done A restart policy tells Docker whether to start a container again after it exits or after the host reboots, and unless-stopped is the usual choice for services. 20 min Beginner Quiz
- Run commands inside a Docker container (docker exec) Up next Done docker exec runs a command inside an already running container, which is the normal way to open a shell and inspect it. 14 min Beginner Quiz
- Multi-stage Docker builds for smaller images Up next Done A multi-stage build uses several FROM lines in one Dockerfile so tools needed to build the app stay out of the final image. 18 min Intermediate Quiz
- Publish Docker container ports safely Up next Done Publishing a port with -p exposes it on every host address unless you bind it to 127.0.0.1, and Docker's own firewall rules can bypass UFW. 14 min Intermediate Quiz
- Update a Docker container to a new image Up next Done Updating a Compose service means pulling the new image and running docker compose up -d, which recreates only the containers whose image changed. 14 min Beginner Quiz
Part 4
Lessons 16 to 20
5 lessons, 1h 2m 0/5- Docker bridge vs host networking: which to use Up next Done A bridge network gives each container its own network namespace behind NAT, while host mode makes the container share the host's network stack directly. 12 min Intermediate Quiz
- What 0.0.0.0 means when publishing Docker ports Up next Done In a -p mapping, 0.0.0.0 means the host port listens on every IPv4 interface, while 127.0.0.1 limits it to the server itself. 12 min Intermediate Quiz
- DNS inside Docker: how containers find each other Up next Done On user-defined networks Docker runs an embedded DNS server at 127.0.0.11 that resolves container names, service names and aliases to container IP addresses. 12 min Intermediate Quiz
- Bind mounts vs volumes: permissions and ownership Up next Done A bind mount exposes a host folder with its own numeric owners, while a named volume is managed by Docker and copies image content in when it starts empty. 14 min Intermediate Quiz
- Docker logging drivers and log rotation explained Up next Done A Docker logging driver decides where a container's stdout and stderr go, and json-file, the default, keeps them on disk without rotation unless you set limits. 12 min Intermediate Quiz