Topic

Docker and containers

Containers, images, networks from the bridge to overlays, volumes, Compose, registries, firewalls and container security.

  • 14 hands-on labs
  • Beginner to advanced
  • 1 Academy course
  • DevOps plan

Opens with the DevOps plan. Cloud, AI, Data and Teams include it too.

Labs

14 labs in order. Beginner to advanced.

Each lab is a real machine built only for you, with a guide and checks that read what you actually did.

  1. Beginner

    Docker containers from the start

    Your first hour with Docker: run, publish, mount, configure, restart, inspect and clean up containers, the everyday commands of every container job.

  2. Intermediate

    Building good Docker images

    Write Dockerfiles the way production teams do: a normal user, a health check, labels, a .dockerignore that keeps secrets out, and a multi-stage build that ships only what runs.

  3. Intermediate

    Docker and Docker Compose

    Build your own image from a Dockerfile, run it, connect it to redis on a network of your own, keep the data in a named volume, then run both as one app with Docker Compose.

  4. Intermediate

    Inside the Docker bridge

    Follow a container's traffic from its own network namespace through a veth pair onto a Linux bridge and out through NAT, then shape a bridge network yourself: its addresses, a fixed address, a port only the VM can reach and a network whose containers cannot talk to each other.

  5. Intermediate

    Service discovery and DNS in Docker

    See how Docker answers names inside a container, then use it: one name for two replicas, a container that joins two networks without exposing the back end, a network with no way out, and names a single container needs that DNS does not know.

  6. Intermediate

    Multi service apps with Docker Compose

    Describe a real three service app in one compose.yaml: secrets from .env, health checks and a safe start order, separate networks with the database kept internal, data that survives, and a scaled worker.

  7. Advanced

    Debug and right size containers

    Diagnose the container failures you meet in production, a crash loop, an out of memory kill and a missing network, then reclaim disk safely and give a container the limits that stop it hurting its neighbours.

  8. Advanced

    Host, none, macvlan and ipvlan networks

    Go beyond the bridge: a container on the host's own network, one with none, a sidecar sharing an app's namespace, containers with their own MAC addresses on macvlan with the shim the host needs to reach them, and ipvlan routing two subnets with no gateway.

  9. Advanced

    Published ports and the firewall

    Learn the path a packet to a published port really takes, then control it: rules in DOCKER-USER that match the port the client asked for, a log of what you refuse, rules that come back with Docker, a safe default address for every published port, and IPv6.

  10. Advanced

    A private Docker registry

    Run your own image registry with a password, push releases, run a container by its exact digest, and delete a bad release and reclaim its space safely.

  11. Advanced

    Container security

    Find and remove a container that could take over the host, then run an app with the protections security reviews ask for: read-only root, no capabilities, no escalation, a normal user and resource limits.

  12. Advanced

    Docker Swarm across three servers

    Run containers across three servers with Docker Swarm: join a cluster, run a replicated service behind the routing mesh, roll out updates safely, use secrets and drain a node for maintenance.

  13. Advanced

    Overlay networks across hosts

    Build the overlay networks Docker uses across hosts: a two node swarm, standalone containers sharing one network across VMs, VXLAN seen on the wire with its network identifier, IPsec on an encrypted overlay, and the two ways a swarm publishes a port.

  14. Advanced

    Fix broken container networking

    A project that brings the Docker networking track together: five services of a market that cannot be reached or cannot reach each other, each with a different cause, found from the symptom down to the namespace.

Academy

Read the lessons first.

  • Docker in practice

    Containers, networking, volumes, and repeatable Compose applications.

    Beginner · 4 lessons · 42 min

Guides

Keep the details close.

  • Guide

    Your first Compose stack

    A small web service, a named network, and a persistent volume.

    Sign in to open it

Learning paths

On these learning paths.