Docker Cheatsheet
The Docker commands that cover everyday container work — building, running, inspecting and cleaning up.
Images
Build an image from the local Dockerfile.
List local images.
Download an image from a registry.
Remove an image.
Containers
Run a container, mapping a port.
Run detached (in the background).
List all containers, including stopped.
Stop a running container.
Remove a stopped container.
Inspecting
Follow a container’s output.
Open a shell inside a container.
Detailed low-level info.
Compose
Start all services in the background.
Stop and remove services.
Follow logs from all services.
Cleanup
Remove unused containers, networks, images.
Remove unused volumes.
Remove all unused images.