Skip to main content
beginner learning path

Docker Learning Path

Learn Docker in order: containers, images, Dockerfiles, volumes, networks and Compose, then smaller, safer images and a real deploy. Free.

25steps
5stages
~8.5hours

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

Start the path

Step 1: What Is Docker? Containers, Images and How Docker Works

  1. // 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.

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

    2. Guide chapter17 min

      How to Install Docker on Ubuntu, Debian, Fedora, macOS and Windows

      Install Docker on your system and check that it works.

    3. Guide chapter13 min

      Run Your First Docker Container: docker run, ps, logs and exec

      Run, list, stop and open a shell in containers.

    4. Simulator25 min

      Docker Terminal Simulator

      Practice docker run, ps, logs and exec in a browser terminal, with a live view of the daemon.

    5. Interview question5 min

      Docker Container Basics

      Explain images and containers in your own words.

  2. // stage 025 steps · 58 min

    Images and Dockerfiles

    Build your own images and understand what makes a build fast or slow.

    1. Guide chapter15 min

      Docker Images: Pull, Tag, Inspect and Clean Up

      Pull, tag, inspect and clean up images.

    2. Guide chapter17 min

      How to Write a Dockerfile and Build a Docker Image

      Write a Dockerfile and build an image for your own app.

    3. Article16 min

      Difference Between RUN, CMD and ENTRYPOINT in a Dockerfile

      When to use RUN, CMD and ENTRYPOINT, and what each changes at startup.

    4. Interview question5 min

      Docker Image Layers and Caching

      How layers and the build cache decide how long a build takes.

    5. Interview question5 min

      Dockerfile Best Practices

      The Dockerfile habits a reviewer looks for.

  3. // stage 035 steps · 1 h 11 min

    Data, networks and Compose

    Keep data when containers come and go, and run several services together.

    1. Guide chapter14 min

      Docker Volumes and Bind Mounts: Persist Container Data

      Keep data when a container is replaced, with volumes and bind mounts.

    2. Guide chapter10 min

      Docker Networking: Bridge Networks, Port Publishing and DNS

      Publish ports and let containers find each other by name.

    3. Guide chapter15 min

      Docker Compose Tutorial: compose.yaml, Services and Commands

      Describe a multi-container app in one compose.yaml file.

    4. Article12 min

      How to Use Environment Variables in Docker and Docker Compose

      Pass configuration into containers without baking it into the image.

    5. Quiz20 min

      Docker Fundamentals Quiz

      Check the fundamentals before you start optimizing.

  4. // 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.

    1. Guide chapter17 min

      Docker Best Practices: Secure, Small and Maintainable Containers

      Non-root users, pinned versions and the habits that keep images small.

    2. Exercise1 h

      Docker Multi-Stage Build Optimization

      Shrink a real image with a multi-stage build.

    3. Challenge30 min

      Shrink the Image

      Make an image smaller on your own. CI checks the result on your pull request.

    4. Article16 min

      Why Your Base Image Has 1,684 CVEs

      Why scanners flag so much, and how the base image you pick changes it.

    5. Checklist1 h

      Docker Security Hardening Checklist

      Go through the settings that matter most for container security.

  5. // 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.

    1. Article19 min

      How Docker Really Works, From docker run to the Kernel

      Follow docker run down to namespaces and cgroups in the kernel.

    2. Simulator15 min

      How Docker Works Under the Hood

      See the kernel pieces a container is made of, one at a time.

    3. Guide chapter20 min

      Docker in Production: Deploy, Update and Monitor Containers

      Deploy, update and monitor containers on a real host.

    4. Exercise1 h

      Running Docker Containers on Your Linux Server

      Run a containerized app on your own Linux server, end to end.

    5. Flashcards12 min

      Docker Essentials

      Review the commands and ideas from the whole path.

// next pathCI/CD with GitHub Actions