Complete Docker commands cheat sheet for container management, image operations, Docker Compose, and system administration. Essential reference for DevOps engineers and developers working with containerized applications.
Docker is a popular DevOps/CLI tool used by professionals worldwide. Learning keyboard shortcuts can dramatically speed up your workflow — studies show shortcut users save an average of 8 days per year compared to mouse-only users.
This page covers all 24 Docker shortcuts across 4 categories: Container Management, Image Management, Docker Compose, System. Each shortcut includes a description to help you understand when and how to use it effectively.
Start with the essentials: Learn docker run [image] (Run container) and docker ps (List running) first — these are the most commonly used.
Practice daily: Pick 2–3 new shortcuts each day and consciously use them instead of the mouse. Within a week, they become muscle memory.
Print this cheat sheet: Keep a reference nearby until shortcuts become automatic. Focus on the Container Management category first.
CLI tip: Create shell aliases for the commands you use most. Combine them with these shortcuts for maximum efficiency.
Search all Docker shortcuts interactively
Interactive Shortcut Finder| Shortcut | Action | Description |
|---|---|---|
| docker images | List images | List locally stored images. |
| Shortcut | Action | Description |
|---|---|---|
| docker compose up -d | Start services | Start all services in the background. |
| docker compose down | Stop services | Stop and remove all service containers. |
| docker compose logs -f | Follow logs | Follow service logs in real time. |
| docker compose ps | Service status | Check service status. |
| docker compose build | Build services | Build service images. |
| docker compose restart | Restart | Restart all services. |
| Shortcut | Action | Description |
|---|---|---|
| docker system prune | Cleanup | Remove unused containers, images, and networks. |
| docker volume ls | List volumes | List Docker volumes. |
| docker network ls | List networks | List Docker networks. |
| docker stats | Resource usage | Show real-time CPU and memory usage per container. |
Use 'docker ps' to list running containers, or 'docker ps -a' to include stopped containers.
Run 'docker stop $(docker ps -q)' to stop all running containers at once.
Run 'docker system prune' to clean up unused containers, images, and networks. Add '-a' to remove all unused images.
docker run creates and starts a new container, while docker exec runs a command inside an already running container.
Use 'docker logs [container-id]' to view logs. Add '-f' flag to follow logs in real time.
Browse shortcuts for 230 platforms
Explore All