Show Menu
Cheatography

docker Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

docker­-co­mpose

docker­-co­mpose up
Start in front
docker­-co­mpose up -d
Start in background
docker­-co­mpose build
Just rebuild
docker­-co­mpose rm
Remove stopped containers (Y/N)
docker­-co­mpose exec [service] bash
Run bash in specified container
docker­-co­mpose restart
Restart services
docker­-co­mpose stop
Stop services
 

docker

docker ps
List active containers
docker images
List all images
docker image prune
Remove all dangling images (Y/N)

docker­-co­ntainer

docker container list
List all containers
docker container prune
Remove unused containers (Y/N)