Docker Learning Path
Learn Docker in order: containers, images, Dockerfiles, volumes, networks and Compose, then smaller, safer images and a real deploy. Free.
What you will be able to do
- Run, inspect and debug containers
- Write Dockerfiles that build fast and produce small images
- Keep data with volumes and connect services with networks and Compose
- Scan and harden images before they reach production
- Deploy a containerized app to a server
10 guide chapters, 4 articles, 3 interview questions, 2 simulators, 2 exercises, 1 quiz, 1 challenge, 1 checklist, 1 flashcard deck. Every step is free. Tick a step when you finish it, or let the guide, exercise and checklist pages tick it for you.
// your progress
0 / 25 steps
Step 1: What Is Docker? Containers, Images and How Docker Works
// stage 015 steps · 1 h 11 min
Containers and your first run
What a container is, and the handful of commands you use to run one.
Guide chapter11 min
What Is Docker? Containers, Images and How Docker Works
What a container is, how it differs from a virtual machine, and how Docker fits together.
Guide chapter17 min
How to Install Docker on Ubuntu, Debian, Fedora, macOS and Windows
Install Docker on your system and check that it works.
Guide chapter13 min
Run Your First Docker Container: docker run, ps, logs and exec
Run, list, stop and open a shell in containers.
Simulator25 min
Docker Terminal Simulator
Practice docker run, ps, logs and exec in a browser terminal, with a live view of the daemon.
// stage 025 steps · 58 min
Images and Dockerfiles
Build your own images and understand what makes a build fast or slow.
Guide chapter15 min
Docker Images: Pull, Tag, Inspect and Clean Up
Pull, tag, inspect and clean up images.
Guide chapter17 min
How to Write a Dockerfile and Build a Docker Image
Write a Dockerfile and build an image for your own app.
Article16 min
Difference Between RUN, CMD and ENTRYPOINT in a Dockerfile
When to use RUN, CMD and ENTRYPOINT, and what each changes at startup.
Interview question5 min
Docker Image Layers and Caching
How layers and the build cache decide how long a build takes.
// stage 035 steps · 1 h 11 min
Data, networks and Compose
Keep data when containers come and go, and run several services together.
Guide chapter14 min
Docker Volumes and Bind Mounts: Persist Container Data
Keep data when a container is replaced, with volumes and bind mounts.
Guide chapter10 min
Docker Networking: Bridge Networks, Port Publishing and DNS
Publish ports and let containers find each other by name.
Guide chapter15 min
Docker Compose Tutorial: compose.yaml, Services and Commands
Describe a multi-container app in one compose.yaml file.
Article12 min
How to Use Environment Variables in Docker and Docker Compose
Pass configuration into containers without baking it into the image.
// stage 045 steps · 3 h 3 min
Smaller, safer images
Cut image size, reduce what scanners flag and run as little as possible as root.
Guide chapter17 min
Docker Best Practices: Secure, Small and Maintainable Containers
Non-root users, pinned versions and the habits that keep images small.
Challenge30 min
Shrink the Image
Make an image smaller on your own. CI checks the result on your pull request.
Article16 min
Why Your Base Image Has 1,684 CVEs
Why scanners flag so much, and how the base image you pick changes it.
Checklist1 h
Docker Security Hardening Checklist
Go through the settings that matter most for container security.
// stage 055 steps · 2 h 6 min
Under the hood, and shipping it
See what a container really is, then deploy one to a server.
Article19 min
How Docker Really Works, From docker run to the Kernel
Follow docker run down to namespaces and cgroups in the kernel.
Simulator15 min
How Docker Works Under the Hood
See the kernel pieces a container is made of, one at a time.
Guide chapter20 min
Docker in Production: Deploy, Update and Monitor Containers
Deploy, update and monitor containers on a real host.
Exercise1 h
Running Docker Containers on Your Linux Server
Run a containerized app on your own Linux server, end to end.