Docker30 commands
Docker CLI Cheat Sheet
Essential Docker commands for building, running, and managing containers and images.
Images
| Command | Description |
|---|---|
| Build image from Dockerfile |
| List local images |
| Pull image from registry |
| Push image to registry |
| Remove image |
| Remove unused images |
| Tag an image |
Containers
| Command | Description |
|---|---|
| Run container detached |
| Run interactive shell |
| List running containers |
| List all containers |
| Stop container |
| Remove container |
| View container logs |
| Exec into running container |
| Inspect container details |
Volumes & Networks
| Command | Description |
|---|---|
| Create volume |
| List volumes |
| Create network |
| List networks |
| Mount volume |
Docker Compose
| Command | Description |
|---|---|
| Start services detached |
| Stop and remove services |
| Follow service logs |
| List running services |
| Build service images |
| Shell into service |
Cleanup
| Command | Description |
|---|---|
| Remove unused data |
| Remove everything unused |
| Show disk usage |