Cheatsheet Pages / Docker Cheatsheet

How to run a throwaway Docker container — docker run --rm

You want to poke around inside an image and leave nothing behind when you exit.

docker run --rm -it ubuntu:24.04 bash   # gone when you exit — great for experiments
Docker Cheatsheet one-page card — commands that actually work
The full one-page card — Docker Cheatsheet. Get the complete cheatsheet on GitHub