Docker Cheatsheet
67 matches
Visible
67
all
Total
67
commands
Sections
6
groups
Status
ready
local
commands
Images
Containers
Volumes
Networks
Compose
System & maintenance
descriptions
Images
List local images
Download image from registry
docker pull nginx:alpine
Upload image to registry
Build image from Dockerfile
Build without cache
Tag an image with new name
Remove image
Show image layer history
Export image to tarball
Import image from tarball
Remove dangling images
Containers
Create + start container
Run detached
Interactive shell in container
Auto-remove on exit
Map host:container port
Mount current dir into container
Set environment variable
Name the container
List running containers
List all containers (incl. stopped)
Start a stopped container
Gracefully stop container
Restart container
Force-kill container
Remove stopped container
Force-remove running container
Open shell in running container
Tail container logs
Show container details (JSON)
Copy from container to host
Show container processes
Live resource-usage table
Volumes
List volumes
Create named volume
Show volume details
Remove volume
Remove unused volumes
Networks
List networks
Create user-defined network
Show network details
Attach container to network
Detach container from network
Remove network
Remove unused networks
Compose
Start services defined in compose file
Start services detached
Rebuild images before starting
Stop and remove containers + networks
Also remove named volumes
List compose-managed containers
Tail logs from all services
Shell into service
Restart specific service
Build/rebuild services
Pull latest service images
Validate and view merged config
System & maintenance
Display system-wide info
Show client / server versions
Show disk usage
Remove unused data
Aggressive cleanup
Remove stopped containers
Authenticate with a registry
Log out of registry
List Docker contexts
Switch active context