Hands-on labs · from your computer to production
Docker Labs
Hands-on Docker practice from your laptop to production: run and debug containers, build small images with multi-stage builds, run a multi-service app with Compose, deploy to AWS Fargate, and finish with hardened, scanned images built in CI. Every lab shows what changes when the same work runs a real system.
Every lab ends with In production: what changes when the same work runs a real system, and a checklist you can use at work.
Local
Your own computer. No account, no cost.
-
Docker Basics: Containers, Images, Volumes and Networks
Run your first containers, read their logs, open a shell inside one, tag an image, keep data in a named volume when a container is replaced, and connect two containers by name on a user-defined network.
Beginner30 minFree
-
Small, Fast Images with Multi-Stage Builds
Containerise a small Go API twice — once naively, once with a multi-stage build — compare a 492 MB image with a 15 MB one, and learn how layer caching and .dockerignore make rebuilds fast.
Beginner35 minFree
-
A Multi-Service App with Docker Compose
Run a Node.js web app with PostgreSQL and Redis from one Compose file: health checks, start-up ordering, an env file, a named volume for the database, and the difference between `down` and `down -v`.
Intermediate40 minFree
-
Debugging Containers: Exit Codes, Logs, Restarts and OOM Kills
Diagnose the problems you will meet in real deployments: a container that exits immediately, a restart loop, a process killed for using too much memory, and a running service you need to look inside.
Intermediate30 minFree
AWS
An AWS account. Free tier where possible; always clean up.
-
Run a Container on AWS: ECR and ECS Fargate
Push the hello-api image to Amazon ECR and run it on ECS Fargate with the AWS CLI: repository, execution role, log group, task definition, service with a public IP, then a complete clean-up.
Intermediate45 minUnder $0.05 if you clean up within an hour
Production
Production design: environments, CI/CD, security, monitoring, rollback.
-
Production-Grade Images: Hardened, Scanned and Built in CI
Build an image the way security reviews expect: pinned base digests, non-root distroless runtime, a health check without a shell, read-only filesystem, dropped capabilities, version and git-SHA tags, a Trivy scan that gates CI, an SBOM, and a GitHub Actions pipeline that builds, scans and pushes.
Advanced60 minFree for public repositories