Updated Docker (markdown)

master
Oscar te Giffel 7 years ago
parent e69656590e
commit cfd9fb1d7c

@ -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

Loading…
Cancel
Save