This is a draft cheat sheet. It is a work in progress and is not finished yet.
docker-compose
docker-compose up |
Start in front |
docker-compose up -d |
Start in background |
docker-compose build |
Just rebuild |
docker-compose rm |
Remove stopped containers (Y/N) |
docker-compose exec [service] bash |
Run bash in specified container |
docker-compose restart |
Restart services |
docker-compose stop |
Stop services |
|
|
docker
docker ps |
List active containers |
docker images |
List all images |
docker image prune |
Remove all dangling images (Y/N) |
docker-container
docker container list |
List all containers |
docker container prune |
Remove unused containers (Y/N) |
|