Reference

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 384 across 26 tools. Pick a tool in the sidebar, or search across all of them.

Docker

Build, run, and manage containers and images.
CommandWhat it doesExample
docker runStart a container from an image.docker run -d -p 8080:80 nginx
docker psList containers (add -a for stopped ones).docker ps -a
docker imagesList the images on your machine.docker images
docker buildBuild an image from a Dockerfile.docker build -t myapp:1.0 .
docker execRun a command inside a running container.docker exec -it web bash
docker logsView (and follow) a container’s logs.docker logs -f web
docker stopStop a running container.docker stop web
docker rmRemove a stopped container.docker rm web
docker rmiRemove an image.docker rmi myapp:1.0
docker pullDownload an image from a registry.docker pull postgres:16
docker compose upStart the services defined in a compose file.docker compose up -d
docker compose downStop and remove those services.docker compose down
docker exec envOpen a shell to debug a container.docker exec -it postgres psql -U postgres
docker cpCopy a file out of (or into) a container.docker cp web:/app/error.log ./error.log
docker inspectShow low-level details of a container.docker inspect web
docker system pruneReclaim space by removing unused data.docker system prune -af