Skip to content
Commitpedia
Log in Join & edit

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

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

Start with step 1