Docker Cheat Sheet
Transform, format, and optimize your data instantly with this free client-side tool.
Container Management
Run a command in a new container
Run container in background and print container ID
Publish a container's port(s) to the host
List running containers
List all containers (running and stopped)
Stop one or more running containers
Start one or more stopped containers
Restart one or more containers
Remove one or more containers
Force remove a running container
Run an interactive shell in a running container
Fetch the logs of a container
Follow log output
Display the running processes of a container
Image Management
List locally stored images
Pull an image or a repository from a registry
Push an image or a repository to a registry
Remove one or more images
Build an image from a Dockerfile in the current directory
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Network Management
List networks
Create a network
Remove one or more networks
Connect a container to a network
Disconnect a container from a network
Volume Management
List volumes
Create a volume
Remove one or more volumes
System & Cleanup
Display system-wide information
Show docker disk usage
Remove unused data (stopped containers, unused networks/images/build cache)
Remove all unused images, not just dangling ones
Docker Compose
Builds, (re)creates, starts, and attaches to containers for a service
Run containers in the background
Stops containers and removes containers, networks, volumes, and images
List containers
Build or rebuild services
Advanced
DANGEROUS: Remove all unused containers, networks, images, and volumes
Get an interactive shell inside a running container
Get the internal IP address of a container
🔥 Similar Tools
Explore LibraryFrequently Asked Questions
Got questions? We've got answers.