Free Docker practice in your browser

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.

Why learn Docker in 2026

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.

01

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.

02

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.

03

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.

How 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.

01

Read the mission

A short scenario with clear objectives. No long lecture first.

02

Use the terminal

Real commands, real output, real error messages, like on a server.

03

Check your work

The lab inspects Docker and ticks off each objective that is truly done.

04

Level up

Earn stars and XP, rank up, then replay labs for a perfect score.

The labs

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.

  1. Lab 1

    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
    Start
  2. Lab 2

    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
    Start
  3. Lab 3

    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
    Start
  4. Lab 4

    Step Inside: open a shell inside a container

    Open a shell inside a container, look around and leave again.

    docker run -itexit
    Start
  5. Lab 5

    Clean Up the Base: name your containers and remove old ones

    Give containers your own names and clean up old ones.

    --namedocker rm
    Start
  6. Lab 6

    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
    Start
  7. Lab 7

    Radio Chatter: read what a container printed

    Read what a background container printed with docker logs.

    docker logs--tail
    Start
  8. Lab 8

    Inside Job: run commands in a running container

    Run commands inside a container that is already running.

    docker exec
    Start
  9. Lab 9

    Safe Box: keep your data with volumes

    Keep data safe in a volume, even after the container is removed.

    volumes-v name:/path--rm
    Start
  10. Lab 10

    Build Your Own: write a Dockerfile and build an image

    Write your first Dockerfile and build your own image.

    DockerfileFROMCMDdocker build -t
    Start
  11. Lab 11

    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
    Start
  12. Lab 12

    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
    Start
Progress

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.
Recruit0 XP
Private80 XP
Corporal250 XP
Sergeant500 XP
Lieutenant800 XP
Captain1150 XP
Major1500 XP
Colonel1850 XP
General2150 XP
Price

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
Start lab 1
FAQ

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