Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Specialise

Docker cheat sheet

Opens with credits

A working reference for Docker, from the first docker run to lean multi-stage builds, Compose stacks and multi-arch images in a registry. Use it to look up a flag, a Dockerfile instruction or the reason a build keeps missing the cache.

Curated by Tauseef Fayyaz9 chapters62 concepts85 glossary terms

Chapters

9 chapters · 62 concepts

  1. 1Images, containers and the engineWhat an image is, what a container is, and the everyday commands for starting, listing and removing them.7 concepts
  2. 2Writing a DockerfileThe instructions that turn source code into an image, and the details that decide how the container starts and stops.8 concepts
  3. Layers, caching and faster buildsHow the build cache works, how to keep it warm, and the BuildKit features that make builds quicker and images smaller.8 conceptsOpens with credits
  4. Small and secure imagesChoosing a base, dropping root, keeping secrets out of layers and knowing what is inside the image you ship.7 conceptsOpens with credits
  5. Storage and networkingWhere container data lives, how containers find each other, and what reaches them from outside.6 conceptsOpens with credits
  6. Configuration, secrets and limitsPassing configuration in at run time, handling secrets, and keeping containers inside their resource budget.6 conceptsOpens with credits
  7. Docker ComposeDescribing a multi-container app in one file and running it the same way on every machine.7 conceptsOpens with credits
  8. Registries, tagging and multi-archGetting images from a build to the machines that run them, with names you can trust and platforms that match.6 conceptsOpens with credits
  9. Debugging containersFinding out why a container will not start, keeps restarting, cannot connect or uses too much of the host.7 conceptsOpens with credits
  10. 10Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.85 terms

About this sheet

Images, Dockerfiles, caching, small secure builds, volumes, networks, Compose, registries and debugging containers.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com