Learn Docker by actually using it.
12 free, hands-on Docker labs for complete beginners, with a real terminal and a real Docker engine. Every idea is explained before you use it. Start with your first container, finish with Docker Compose. No install, no signup.
Beginner friendly. Takes about 2 hours in total. Progress is saved in your browser.
Docker is everywhere. Learning it should not start with a broken install.
Developer jobs list it, self-hosted apps install with it and your side project deploys with it. The fastest way to understand it is to type the commands yourself and see what happens.
It is in every job ad and every README
Backend, DevOps, data and AI roles expect it. Most self-hosted tools install with one compose file. Knowing what that file does is now a basic skill.
Setup should not be lesson one
No Docker Desktop, no settings to change, no admin rights, nothing to clean up afterwards. Open a tab and start typing.
You learn by typing, not watching
Videos feel productive and fade fast. Every lab checks your work against the real Docker engine, so you know it works.
Read the goal. Type the commands. Check your work.
Every lab gives you a Linux terminal with Docker and Docker Compose ready to go. Made a mess? Reset the lab and start clean.
Read the mission
A short scenario with clear objectives. No long lecture first.
Use the terminal
Real commands, real output, real error messages, like on a server.
Check your work
The lab inspects Docker and ticks off each objective that is truly done.
Level up
Earn stars and XP, rank up, then replay labs for a perfect score.
12 Docker labs, from zero to Docker Compose
Never used Docker? Perfect. Each lab explains one new idea, shows you the command, and lets you try it right away.
-
Lab 1Start
Hello, Docker: run your very first container
Run your very first container and learn the difference between an image and a container.
docker run hello-worlddocker images -
Lab 2Start
Copy Machine: one image, many containers
See how one image makes many containers, and why finished containers are stopped, not gone.
docker psdocker ps -a -
Lab 3Start
Give It Orders: tell a container which command to run
Tell a container which command to run and meet alpine, a tiny Linux system.
docker run alpine echocommands in containers -
Lab 4Start
Step Inside: open a shell inside a container
Open a shell inside a container, look around and leave again.
docker run -itexit -
Lab 5Start
Clean Up the Base: name your containers and remove old ones
Give containers your own names and clean up old ones.
--namedocker rm -
Lab 6Start
Night Watch: run containers in the background
Run a web server in the background and stop containers you no longer need.
docker run -ddocker stop -
Lab 7Start
Radio Chatter: read what a container printed
Read what a background container printed with docker logs.
docker logs--tail -
Lab 8Start
Inside Job: run commands in a running container
Run commands inside a container that is already running.
docker exec -
Lab 9Start
Safe Box: keep your data with volumes
Keep data safe in a volume, even after the container is removed.
volumes-v name:/path--rm -
Lab 10Start
Build Your Own: write a Dockerfile and build an image
Write your first Dockerfile and build your own image.
DockerfileFROMCMDdocker build -t -
Lab 11Start
Open for Business: put your own files into an image
Copy your own web page into an image and serve it with nginx.
COPYnginxyour own web page -
Lab 12Start
All Together Now: start several containers with Docker Compose
Start a web server and a background worker together with one Docker Compose file.
compose.yamldocker compose up -ddocker compose ps
Small wins that keep you going
- Three stars per lab. Complete it, beat the par time, and do it without hints. Replay until it is perfect.
- XP and ranks. Stars earn XP and XP gets you promoted, from Recruit to General.
- Daily streak. One lab a day keeps it alive. Ten minutes is enough.
- Instant feedback. Check your work at any time and see exactly which objectives are done.
Free. All 12 labs.
No trial, no credit card, no account. Just open the labs and start.
- All 12 Docker and Docker Compose labs
- Hints, stars, XP and ranks
- Works in Chrome, Edge, Firefox and Safari
- Progress saved in your browser
Learning Docker: common questions
How can I learn Docker for free?
Open Container Drills and start lab 1. All 12 labs are free, run in your browser and need no install, signup or credit card. You type real Docker commands and each lab checks your work.
Can I practice Docker without installing it?
Yes. Every lab gives you a terminal with Docker and Docker Compose already set up, right in your browser tab. Nothing is installed on your computer, and you cannot break your own system.
Is Docker hard to learn for beginners?
No. The labs assume you have never used Docker and explain every idea, like images and containers, before you use it. Each lab adds one small step, and most people finish the basics in about two hours.
What is the difference between a Docker image and a container?
An image is the blueprint: the files and settings for an application. A container is a running (or stopped) instance of that image. You can start many containers from one image, and removing a container does not remove the image.
What is Docker Compose?
Docker Compose lets you describe several containers and their settings in one compose.yaml file, then start everything with docker compose up. Lab 12 introduces it hands-on.
Do I need to know Linux to use these labs?
Only a little. If you can type a command, use cd and ls and edit a file with nano, you have enough. Every lab has hints when you get stuck.
Is this real Docker or a simulation?
It is the real Docker engine and the real Docker Compose. If a command works in the lab, it works the same way on your own server.
Can I pull images from Docker Hub inside the labs?
The labs work offline with a preloaded set of common images such as alpine, busybox and nginx. You never wait on downloads and every lab behaves the same for everyone.
Does Container Drills teach Kubernetes?
Not yet. Docker comes first, because every Kubernetes workload starts as a container image and you need to understand containers before orchestrating them.
Is Container Drills affiliated with Docker, Inc.?
No. Container Drills is an independent practice site. Docker is a trademark of Docker, Inc.
Your first container is 30 seconds away.
No install, no signup. Open the labs and start typing.
Start lab 1