Docker
Learn what a container really is, then run, build, connect, secure and debug containers with Docker, run Waypoint with Compose and ship its API to Azure Container Apps.
Modules
13
Lessons
99
Level
Intermediate
Project
Reviewed by a mentor
About This Course
Containers are how modern applications are packaged and shipped. This course explains what a container really is at the Linux level, then teaches you to run, build, connect, secure and debug containers with Docker. You'll meet Waypoint, the passenger app of Trecho, a bus terminal company, which you'll carry through the rest of the path: run its front end, API and database locally with Docker Compose, scan and harden its images, push them to Azure Container Registry and run the API on Azure Container Apps.
You'll Be Able To
- Explain how containers differ from virtual machines and how images, layers and registries work.
- Write small, secure, multi-stage Dockerfiles that run as a non-root user.
- Persist data with volumes and connect services over user-defined networks.
- Run a multi-service application locally with Docker Compose.
- Scan images, keep secrets out of them and troubleshoot containers that won't start or behave.
- Push images to Azure Container Registry and run them on Azure Container Apps.
What's Inside
- 1
Why containers
7 lessons
Find out what a container really is: an ordinary Linux process isolated by namespaces, limited by cgroups and built from image layers, and how Docker's parts fit together.
- 2
Installing Docker
4 lessons
Install Docker Engine on Ubuntu from Docker's apt repository, learn why the docker group is as powerful as root, and read what hello-world, docker version and docker info tell you.
- 3
Running containers
12 lessons
Run, name and publish containers, take them through their lifecycle, read their logs, work inside them with docker exec, and keep services running with restart policies.
- 4
Images
8 lessons
See how images are built from layers, pull them by tag or exact digest, choose a trustworthy base image and variant, find what makes an image big, and clean up disk space safely.
- 5
Building images
12 lessons
Write Dockerfiles instruction by instruction, keep secrets and clutter out of the build context, run apps as a non-root user, and order steps so rebuilds take seconds.
- 6
Better images
6 lessons
Make images smaller and easier to run: multi-stage builds, lean layers, health checks, labels, and Buildx builds for both amd64 and arm64 machines.
- 7
Configuration
4 lessons
Run one image with different settings: environment variables, env files and mounted config files, plus how secrets leak into images and how to keep them out.
- 8
Storage
7 lessons
Keep data safe when containers are replaced: named volumes, bind mounts and tmpfs mounts, when to use each, and how to back up and restore a volume.
- 9
Networking
7 lessons
Connect containers to each other and the outside world: bridge networks, Docker's DNS, host and none modes, and publishing only the ports that need it.
- 10
Docker Compose
11 lessons
Run a multi-container application from one file: compose.yaml, images, .env files, health checks, overrides and profiles, ending with Waypoint running locally.
- 11
Container security
7 lessons
Run containers as an ordinary user, scan images with Trivy, make filesystems read-only, drop Linux capabilities, pin images by digest and keep secrets out of images.
- 12
Troubleshooting containers
6 lessons
Find out why a container won't start, stay up or answer: read exit codes and logs, trace port mappings, fix failed builds and debug images with no shell.
- 13
Containers on Azure
8 lessons
Push images to a private Azure Container Registry and run them on Azure Container Apps, with managed-identity pulls, revisions, ingress, scaling and logs.