Docker Advanced: Builds and Containers That Hold Up in Production
Faster builds, safer images, and containers you can run under load without guessing what fails first. You will cut rebuild times with cache mounts and multi-stage builds, run as non-root on a read-only filesystem, set limits and health checks that mean something, keep logs and registry tokens under control, and deploy a new version on one host without dropping requests. Skip this and the containers work fine right up to the day the disk fills, the memory runs out or a deployment drops a customer's request.
Course access
-
Faster Builds (empty)3Lessons · 25 min
-
BuildKit: Cache Mounts and Why Rebuilds Are Slow
Read a build log, find the first step that is not cached, fix the line order and add a BuildKit cache mount for pip. After this, you can make code edits rebuild in seconds and new dependencies download only what is new.
10 min -
Multi-Stage Builds Without Shipping the Compiler
Build a Go service in one stage and ship only the binary from scratch, and see why CGO_ENABLED=0 matters. After this, you can cut an image from hundreds of megabytes to a few and keep compilers out of production.
10 min -
-
-
Images That Don't Leak (empty)3Lessons · 25 min
-
Non-Root Users and Dropping Capabilities
See who a container runs as, drop every capability, add a USER line and serve port 80 without root. After this, you can ship images that give an attacker as little as possible.
10 min -
Pin Digests, Base Image Updates and CVEs
Look up an image digest, pin a base image with it, and scan an image without a Docker account. After this, you can get repeatable builds and still take security updates on purpose.
10 min -
-
-
Running Under Load (empty)3Lessons · 25 min
-
Resource Limits, Restart Policies and Healthchecks
Trigger an out-of-memory kill, cap CPU, watch a restart policy give up and a health check turn unhealthy without a restart. After this, you can tell which of the three tools solves which problem.
10 min -
Logging Drivers and What Happens When Disk Fills
Find where container logs go, cap them with max-size and max-file, try the local and none drivers, and set limits in Compose. After this, you can keep logs from filling a server's disk.
10 min -
-
-
Beyond One Compose File (empty)3Lessons · 20 min
-
Compose Profiles, Watch and Override Files
Use profiles for optional services, see how override files merge, avoid the ports trap with the override tag and sync edits with docker compose watch. After this, you can run one base Compose file in every environment.
5 min -
Private Registries and Auth Without Sticking Tokens in Files
Run a registry with a password, log in from Windows and from a Linux command line, and see where the credentials end up. After this, you can log in from a laptop or CI without leaving tokens in files.
10 min -
-
-
Production Concerns (empty)4Lessons · 30 min
-
Read-Only Root Filesystems and tmpfs
Find where a service writes with docker diff, lock its root filesystem and give it sized tmpfs mounts. After this, you can run nginx and your own apps read-only without guessing.
5 min -
Rolling a Service Forward on One Host
Measure the failed requests of a normal Compose deployment, then deploy with blue and green copies and a proxy reload. After this, you can release a new version on one host without dropping requests.
10 min -
When Docker Desktop Is the Wrong Tool
See what Docker Desktop really runs, which conveniences do not exist on a server, and where its licence terms apply. After this, you can decide where Desktop belongs and where Docker Engine does.
10 min -
-
-
Final Check: Docker Advanced (empty)1Lessons · 15 min
-
About
Faster builds, safer images, and containers you can run under load without guessing what fails first. You will cut rebuild times with cache mounts and multi-stage builds, run as non-root on a read-only filesystem, set limits and health checks that mean something, keep logs and registry tokens under control, and deploy a new version on one host without dropping requests. Skip this and the containers work fine right up to the day the disk fills, the memory runs out or a deployment drops a customer's request.
- Responsible
- Christopher R
- Last Update
- 08/01/2026
- Completion Time
- 2 h 20 min
- Members
- 1
Reviews
Sign in to write a reviewComments
Sign in to commentNo comments yet.