Software development

Intermediate Docker: Real Production Cases

Build fast, small and secure images, organize Compose for teams, run networks, data and logs the way production does, and automate with CI/CD. 20 labs with real cases, based on the official documentation.

Intermediate · 20 hours · 20 lessons · Course language: Spanish and English

The next step after Docker from Scratch. You master BuildKit with cache mounts, build secrets and multi-platform images for amd64 and arm64. You shrink your images with distroless and scratch, scan them with Trivy and add an SBOM and provenance. You organize Compose for teams with Compose Watch, multiple files, ordered database migrations and secrets. You design isolated networks, publish services behind Traefik with TLS, back up and restore PostgreSQL, and manage logs and resources. You debug real failures, run a private registry with authentication, build and publish with GitHub Actions, harden security at run time and finish with a complete production project. Every command is explained and every result is real. The first 3 classes are free and include a video. The lessons, quizzes and videos are in English; the lab files keep their original Spanish names, and every lesson explains them.

What you will learn

  • Speed up builds with cache mounts and pass secrets to the build without leaking them
  • Build multi-platform images for amd64 and arm64 with buildx and bake
  • Shrink and secure images with distroless, scratch, Trivy, SBOM and provenance
  • Organize Compose for teams: Watch, multiple files, migrations and secrets
  • Design isolated networks and publish services with Traefik and TLS
  • Back up and restore databases, and manage logs and resources
  • Debug real failures and run a private registry with authentication
  • Automate build and push with GitHub Actions and harden containers in production

Skills

Docker, BuildKit, Docker Buildx, Multi-platform images, Distroless, Trivy, SBOM, Docker Compose, Traefik, PostgreSQL backups, GitHub Actions, Container security

Program

Module 1: BuildKit in depth (free classes)

Cache mounts, build secrets and multi-platform images.

Project: An image that builds in seconds, without leaking secrets, for amd64 and arm64.

  1. BuildKit and cache mounts: How BuildKit builds, the layer cache versus cache mounts, and builds up to 10 times faster.
  2. Build secrets without leaks: Why ARG and ENV leak secrets, and how to use --secret safely.
  3. Multi-platform images with buildx and bake: amd64 and arm64 from a single computer, builders, manifests and imagetools.

Module 2: Secure, lightweight images

Distroless and scratch, scanning with Trivy, SBOM and provenance.

Project: A 10 MB image with no known vulnerabilities and its SBOM.

  1. Minimal images: slim, alpine, distroless and scratch: The same applications on four bases: size, contents and when to use each one.
  2. Vulnerability scanning with Trivy: Find CVEs in images, prioritize them by severity and fix them.
  3. Image SBOM and provenance: What your image contains and how it was built: attestations with buildx.

Module 3: Compose for teams

Compose Watch, multiple files, startup order with migrations and secrets.

Project: A development environment with automatic reload and ordered migrations.

  1. Compose Watch: development with automatic reload: sync, rebuild and sync+restart to see your changes in seconds.
  2. Compose with multiple files: override, include and extends: A base and per-environment settings, checked with docker compose config.
  3. Ordered startup: migrations and dependencies: depends_on with conditions, healthchecks and a migrations service.
  4. Secrets and configs in Compose: Environment variables versus secrets mounted as files.

Module 4: Networks, data and logs in production

Isolated networks, Traefik with TLS, PostgreSQL backups and logs.

Project: An application behind Traefik with tested backups.

  1. Advanced networking and isolation: Frontend and backend networks, internal networks, aliases and DNS load spreading.
  2. Reverse proxy with Traefik and TLS: Routes by domain with labels, TLS certificates and load balancing across replicas.
  3. PostgreSQL backup and restore: pg_dump, volume backups and a restore that is actually tested.
  4. Logs in production: Log drivers, rotation, the local driver and searching by time.

Module 5: Operations and debugging

Resources, debugging real cases and a private registry with authentication.

Project: Five real failures diagnosed and a protected private registry.

  1. Resources: memory, CPU and processes: A real OOMKilled, CPU limits, pids-limit and how to measure them.
  2. Debugging real cases: Containers that won't start, don't answer or can't find others, and how to diagnose them.
  3. Private registry with authentication: registry with users and passwords, login, push and pull.

Module 6: CI/CD, security and final project

GitHub Actions, run-time hardening and a production project.

Project: The store in production: proxy, API, worker, Redis and PostgreSQL.

  1. CI/CD with GitHub Actions: build-push-action, metadata, cache and multi-platform, tested on your computer.
  2. Run-time security: cap-drop, no-new-privileges, read-only, a non-root user and limits, checked one by one.
  3. Final project: the store in production: Traefik, an API with replicas, a worker, Redis and PostgreSQL with secrets, backups and limits.

Prerequisites

  • Having completed Docker from Scratch (free) or using Docker fluently: images, containers, volumes, networks and Compose
  • An up-to-date Docker Desktop (or Docker Engine with Buildx and Compose) and 8 GB of RAM
  • Basic use of the terminal. The applications' code is already written and explained

Next courses

  • Advanced Docker: Kubernetes on Your Computer · Advanced · 20 hours
    Take your containers to Kubernetes with a real three-node cluster on your computer: deployments, services, autoscaling, storage, Gateway API, Helm, Kustomize, security and GitOps. 20 labs with real cases, based on the official documentation.
  • Terraform from Zero to Advanced · Beginner · 20 hours
    Create and manage infrastructure as code: from your first terraform apply to modules, remote state, automated tests and deployments on AWS, Azure and Google Cloud. 20 labs based on the official documentation.

See all courses