Demo code for the Docker for Beginners session at UpLeveled.
| Folder | What |
|---|---|
| CHEATSHEET.md | All commands from the lesson on one page |
| demos/01-first-containers | Mob exercise: hello-world, nginx, port mapping, logs, exec |
| demos/02-my-first-image | 3-line Dockerfile, layers, tags, pushing to a registry |
| demos/03-guestbook-app | Node.js + MongoDB app: networks, Compose, Dockerfile, CI, volumes, debugging |
Each demo folder has a README with the commands, step by step.
- Install Docker Desktop: https://docs.docker.com/get-started/get-docker/
- Start it and run
docker run hello-worldin a terminal - (Optional) Create a free Docker Hub account: https://hub.docker.com/signup
- (Optional, for demo 03 step 3) Node.js 20+
Docker Engine 29.8, Docker Compose v5.5, macOS (Apple Silicon). Images used:
hello-world, nginx:alpine, node:22-alpine, mongo:8, mongo-express:1, registry:2.