Cheatsheet: Docker
Basic Commands
Check Docker version
Run a container
List running containers
Stop a running container
Remove a container
Images
List Docker images
Pull an image from Docker Hub
Build an image from a Dockerfile
Remove an image
Volumes
Create a volume
List volumes
Remove a volume
Use a volume in a container
Networks
Create a network
List networks
Connect a container to a network
Disconnect a container from a network
Docker Compose
Start services defined in docker-compose.yml
Stop services
View running services
Rebuild services
Cookbook
Debug a container
View logs of a container
Copy files from a container
Limit container resources (CPU and Memory)
See also: