Your first Docker container
Understand images and containers, install Docker, run an app with a database, and clean up safely.
Beginner, 9 steps, about 5 hours
- What is a container? Start with the idea before the tool. Article CMP 0268
- Docker images, containers and volumes explained The three words you will use every day, in plain terms. Article CMP 0327
- Install Docker Engine on Ubuntu and Debian Get Docker running and able to work without sudo. Article CMP 0328
- Docker CLI cheat sheet Keep this open while you work through the next steps. Article CMP 0329
- Write a Dockerfile: FROM, COPY, RUN, CMD and multi-stage builds Describe your own image step by step. Article CMP 0330
- docker compose for an app with a PostgreSQL database Run two containers that talk to each other. Article CMP 0331
- Fix: permission denied while trying to connect to the Docker daemon socket The first error almost everyone meets, and the fix. Article CMP 0333
- Docker cleanup script with dry run and confirmation Free disk space without deleting what you still need. Script CMP 0335
- Build and run a small Python web app in a container Put it all together in one guided project. Article CMP 0340