Docker
Docker cheat sheet with essential commands for containers, images, volumes, networks, Docker Compose, and orchestration examples.
Container Management
Running Containers
Start and run Docker containers with various options
Container State Management
Control container lifecycle - start, stop, restart, and remove
Container Inspection & Logs
Debug and inspect running containers for troubleshooting
Executing Commands in Containers
Run commands inside running containers with docker exec and copy files with docker cp
Image Management
Building Images
Build Docker images from Dockerfiles with various options
Image Operations
Manage Docker images - pull, push, tag, and remove
Image Registry
Work with Docker registries and manage image distribution
Dockerfile
Write Dockerfiles to build custom images with all the key instructions
Dockerfile Instructions
The essential Dockerfile commands for building images
Multi-Stage Builds
Use multiple FROM stages to create small, optimized production images
.dockerignore
Exclude files from the build context to speed up builds and avoid leaking secrets
Volumes & Networks
Volume Management
Create and manage Docker volumes for persistent data storage
Network Management
Configure Docker networks for container communication
Docker Compose
Compose Basics
Essential Docker Compose commands for multi-container applications
Compose Configuration
Full compose.yml reference with depends_on, healthcheck, profiles, watch, and more
System & Cleanup
System Management
Monitor and manage Docker system resources and information
Debugging & Troubleshooting
Debug containers and resolve common Docker issues