Docker commands cheatsheet — searchable reference
The everyday Docker commands, grouped so you can find them fast: images, container lifecycle, inspect & debug, volumes & networks, Compose and cleanup. Each command has a short plain-English description and a one-click copy button — handy whether you are learning Docker or just need a quick reminder.
How it works
Commands are organised into six topic sections so related tasks sit together. Type a command name or a task — run, logs, compose, prune — into the search box, and the list filters to matching commands and descriptions as you type. Click Copy next to any command to put it on your clipboard, ready to paste into your terminal. Everything runs locally in your browser; nothing you search or copy is sent anywhere.
Example
Looking to run a web server in the background, then check on it:
| Task | Command |
|---|---|
| Run detached, map port 8080→80 | docker run -d -p 8080:80 nginx |
| List running containers | docker ps |
| Follow the logs | docker logs -f <container> |
| Open a shell inside it | docker exec -it <container> sh |
| Stop it | docker stop <container> |
| Reclaim disk space | docker system prune -a |
Search “prune” and you will surface the cleanup commands like docker system prune (remove stopped containers, unused networks and dangling images) and docker volume prune (remove unused volumes). Everything runs in your browser; nothing is uploaded.