Docker, from the ground up

A no-login Docker course with interactive artifacts, from-scratch builds, and break-fix scenarios that grow TaskFlow Lab from a simple app into a production-ready container system.

Start Learning

How the course teaches Docker

Sample Artifact

The Resource Limiter Simulator

Visualize how cgroups enforce resource limits on containers

Sample Exercise

The API That Starts Before the Database Is Ready

Type: Break-fix · Repair a Compose startup race

Scenario

The API exits before Postgres is ready.

TaskFlow Lab has moved to Docker Compose. A teammate added depends_on: db and expected the API to wait for Postgres. The containers start in order, but Postgres is still initializing. The API connects too early, gets connection refused, and exits.

api | failed to connect to taskflow-db:5432

Your tasks

  1. Reproduce the API startup failure
  2. Explain why depends_on controls order, not readiness
  3. Add a Postgres healthcheck and service_healthy condition
  4. Verify the API starts cleanly after the database is ready

Hint

Start order is not readiness. Compose can wait for a service to become healthy, but only after the database defines a healthcheck.

Curriculum

The complete learning path

Take the modules in order. The regular curriculum builds the Docker model from first principles; the final project applies it as a separate capstone system.

  1. 00 Before Docker — Understanding the Problem 5 chapters
  2. 01 The Container Concept 4 chapters
  3. 02 Your First Container 5 chapters
  4. 03 Images — The Blueprints 5 chapters
  5. 04 Container Lifecycle & Interaction 6 chapters
  6. 05 Building Custom Images 5 chapters
  7. 06 Image Layers Deep Dive 5 chapters
  8. 07 How Containers Actually Work 7 chapters
  9. 08 Container Networking Fundamentals 6 chapters
  10. 09 Advanced Networking 5 chapters
  11. 10 Data Persistence 6 chapters
  12. 11 Docker Compose 6 chapters
  13. 12 Health, Logging & Debugging 6 chapters
  14. 13 Container Security 6 chapters
  15. 14 Production Patterns 6 chapters
  16. 15 Capstone Project Final Project