Docker Mastery#

Understand containers through stories and hands-on labs: Docker architecture, images and containers, Dockerfiles, port mapping, volumes and practical tasks.

How each session works#

  1. The big idea: the topic in plain words, with an everyday example.

  2. A picture: a diagram of the idea.

  3. Real commands: every command was run on Docker 28 and the output you see is what it printed.

  4. Common mistakes: what trips beginners up.

  5. Hands-on exercises: try first, then open the solution.

  6. Practice: a quiz for the session.

Tip

You need Docker installed and running (docker version should show a client and a server). Work in a scratch folder, and clean up with docker rm -f NAME when an exercise is done.

From a Dockerfile to a running container You write a Dockerfile, build an image, optionally push it to a registry, and run containers from it. Dockerfile recipe Image docker build Registry docker push / pull Container docker run
You write a Dockerfile, build an image, optionally push it to a registry, and run containers from it.