Updated Docker (markdown)

Oscar te Giffel 2017-03-10 20:33:32 +01:00
parent e69656590e
commit cfd9fb1d7c
1 changed files with 9 additions and 0 deletions

@ -128,6 +128,15 @@ Modify the variables `images`, `containers` and `services` according to your sys
With these commands you can do some cleanup of docker images and containers:
```bash
# Remove all stopped containers
# Remove all volumes not used by at least one container
# Remove all networks not used by at least one container
# Remove all dangling images
# [https://docs.docker.com/engine/reference/commandline/system_prune/#usage](https://docs.docker.com/engine/reference/commandline/system_prune/#usage)
sudo docker system prune
# Remove leftover containers
sudo docker ps -a -f status=exited -q | xargs -r sudo docker rm