All Shortcuts

Docker Shortcuts & Commands — Complete Cheat Sheet (11)

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.

About Docker

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.

💡 Pro Tips for Docker Users

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.

Related Shortcut Pages

npm / yarn AWS CLI PowerShell tmux GNU Screen LazyGit

Search all Docker shortcuts interactively

Interactive Shortcut Finder

All Docker Shortcuts

Image Management

ShortcutActionDescription
docker imagesList imagesList locally stored images.

Docker Compose

ShortcutActionDescription
docker compose up -dStart servicesStart all services in the background.
docker compose downStop servicesStop and remove all service containers.
docker compose logs -fFollow logsFollow service logs in real time.
docker compose psService statusCheck service status.
docker compose buildBuild servicesBuild service images.
docker compose restartRestartRestart all services.

System

ShortcutActionDescription
docker system pruneCleanupRemove unused containers, images, and networks.
docker volume lsList volumesList Docker volumes.
docker network lsList networksList Docker networks.
docker statsResource usageShow real-time CPU and memory usage per container.

Pro Tips

Frequently Asked Questions

What is the command to list running Docker containers?

Use 'docker ps' to list running containers, or 'docker ps -a' to include stopped containers.

How do I stop all Docker containers?

Run 'docker stop $(docker ps -q)' to stop all running containers at once.

How do I remove unused Docker images?

Run 'docker system prune' to clean up unused containers, images, and networks. Add '-a' to remove all unused images.

What is the difference between docker run and docker exec?

docker run creates and starts a new container, while docker exec runs a command inside an already running container.

How do I view Docker container logs?

Use 'docker logs [container-id]' to view logs. Add '-f' flag to follow logs in real time.

Browse shortcuts for 230 platforms

Explore All