Image and Container Basics
Build image
docker build -t <image>:<tag> .Run container
docker run -d --name <name> -p 8080:80 <image>:<tag>List running containers
docker psList all containers
docker ps -aCore Docker image, container, volume, and compose commands.
Use this Docker cheatsheet to handle local containers, debug runtime issues, and manage compose stacks quickly.
docker build -t <image>:<tag> .docker run -d --name <name> -p 8080:80 <image>:<tag>docker psdocker ps -adocker logs -f <container>docker exec -it <container> shdocker rm -f <container>docker image prune -fdocker compose up -ddocker compose up -d --builddocker compose downUse this Docker cheatsheet to handle local containers, debug runtime issues, and manage compose stacks quickly.
Need a hand with Docker Cheatsheet? Reach out through support or send a feature request with your workflow.