Docker Workshop - Hands-On Labs

- Welcome to the Docker Workshop - a hands-on Docker course that merges the DockerLabs lab series with the Docker-only content of the microservices workshop.
- Every folder below is a self-contained lab that you can complete independently to sharpen a specific containerization skill.
- No Kubernetes required - everything here runs on Docker alone.
- Follow the README file in each lab for detailed steps.
How to Use Those Labs
Usage
- There are several ways to run the Docker-Workshop Labs.
- Choose the method that works best for you.
Using Docker is the easiest way to get started locally with the labs:
# GitHub Container Registry
docker run -it --pull=always -p 3000:3000 ghcr.io/nirgeier/docker-workshop
Prerequisites:
- Docker and Docker Compose installed on your system
- No additional setup required
- The easiest way to get started with the labs
- Learn in your browser without any local installation
Benefits:
- No installation required
- Pre-configured environment
- Works on any device with a web browser
- All tools pre-installed
For those who prefer to run it directly on their machine:
# Clone the repository
git clone https://github.com/nirgeier/Docker-Workshop
# Change to the Labs directory
cd Docker-Workshop/Labs
# Start with the setup lab
cd 001-DockerCli
# Follow the instructions in the README of each lab
cat README.md
Prerequisites:
- A Unix-like operating system (Linux, macOS, or Windows with WSL)
- Basic command-line tools
- Google Cloud Shell provides a free, browser-based environment with all necessary tools pre-installed.
- Click on the
Open in Google Cloud Shellbutton below:
- The repository will automatically be cloned into a free Cloud instance.
- Use CTRL + click to open it in a new window.
- Follow the instructions in the README of each lab.
Benefits:
- No local installation required
- Pre-configured environment
- Works on any device with a web browser
- All tools pre-installed
- Free tier available
Lab Index
-
001 - Docker CLI
Practice the core Docker CLI commands for running, inspecting, and managing containers.
-
002 - Dockerfile Basics
Build your first Node.js container image from a Dockerfile and publish it to a registry.
-
003 - Dockerfile Multi-Stage
Learn how multi-stage Dockerfiles produce lean images across build targets.
-
004 - Local Registry
Stand up a private registry, retag images, and push or pull them locally.
-
005 - Docker Compose Stack
Orchestrate a WordPress and MariaDB stack with Docker Compose.
-
006 - Compose Environments
Structure Compose files and env vars for dev and prod workflows.
-
007 - Docker Compose Fragments
Learn advanced Docker Compose features with fragments and modular configurations.
-
008 - CRI
crictl
Learn about container runtime interface tooling using crictl.
-
009 - Dive Layers
Explore image layer creation and visualize them with the dive tool.
-
010 - Docker Bake
Use Docker Buildx Bake to coordinate complex, multi-target image builds.
-
011 - Security & Trust
Learn advanced Docker security features and best practices for container security.
-
012 - gVisor Seccomp
Apply a gVisor runtime profile to block privileged syscalls inside a container.
-
013 - Cgroups
Learn how control groups limit CPU and memory for containers.
-
014 - Docker Daemon
Configure and troubleshoot the Docker daemon itself.
-
015 - Networking
Master bridge, host and overlay networks, ports and service discovery.
-
016 - Advanced Build
BuildKit secrets, SSH mounts, caching and advanced Dockerfile techniques.
-
017 - Logging
Container log drivers, aggregation and debugging through logs.
-
018 - Dockhand
Capstone challenge: combine everything you learned to ship a full app.
-
019 - Containerd CLI (
ctr)
Manage images, containers, namespaces, content and snapshots directly through containerd.
-
020 - CRI Debugging (
crictl)
Inspect and troubleshoot containers at the exact interface the orchestrator uses.
-
021 - Nerdctl
Build, run, compose and debug containers with a drop-in Docker replacement.
-
100 - Hands-On Intro
Guided Node.js exercise covering the full build, run, and publish workflow.
🐳 Workshop Apps
The apps section builds and runs the workshop applications with Docker only - a tiny REST receiver (App1), a service that calls it over the Docker network (App2), an nginx reverse proxy front door, and the intentionally buggy BuggyApp used for the container debugging task.
| App / Service | What it is |
|---|---|
| App1 | Minimal REST receiver |
| App2 | Calls App1 over the Docker network |
| nginx | Reverse proxy - the front door of the stack |
| BuggyApp | Intentionally buggy app - build, run and debug it |
| ⬇ Download all app sources (zip) | src/ + compose + VS Code debug config, ready to run |
Tasks
| Task | Description |
|---|---|
| Docker CLI Tasks | Hands-on exercises for the core Docker CLI commands. |
| Docker Basics Tasks | Introductory exercises covering images, containers and volumes. |
| Dockerfile Tasks | Dockerfile exercises covering build arguments, parameterized ports, multi-stage. |
| Docker Compose Tasks | Compose exercises: multi-service stacks, env files and health checks. |
| Docker Network Tasks | Creating and testing Docker networks, including custom networks and connectivity. |
Quiz
Think you got it all? Test yourself with the Docker Questionnaire.
Happy learning and hacking with Docker!