DEV Community

Cover image for A printable, PDF - Docker cheatsheet
tq-bit
tq-bit

Posted on

4 1

A printable, PDF - Docker cheatsheet

Hello guys,

since my previous printable Git cheatsheet received a lot of attention, I've added two more pages for the famous containerization tool Docker. I hope you'll enjoy them just as much.

You might find the one command that removes the sudo constraint from docker commands especially useful, so I'll mention it here again. Use with caution!

$ sudo groupadd docker
$ sudo gpasswd -a $USER docker
Enter fullscreen mode Exit fullscreen mode

Cheatsheet 1: Managing images and containers

Most of these commands are commonly used. They include:

  • How to build an image, start a container and tear it down
  • How to use utility containers (e.g. to manage a Vue application during development)
  • How to get rid of old images and containers

docker-cheatsheet-one

Get the PDF from my Github repos:

https://github.com/tq-bit/dev-cheatsheets/blob/main/q-bit_cheatsheets_docker_I.pdf

Cheatsheet 2: Deal with several containers at once

The second cheatsheet include a few utility commands, as well as a blueprint for a docker-compose file. To be exact:

  • How to tear down several containers at once
  • How to execute bash commands & scripts inside a container
  • An overview of the most commonly used docker.compose commands

docker-cheatsheet-two

Get the PDF from my github Repos:

https://github.com/tq-bit/dev-cheatsheets/blob/main/q-bit_cheatsheets_docker_II.pdf


If you find these files useful, I'd be happy if you left a star on the cheatsheet repos :-)

Happy coding!

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more