Skip to content

Instantly share code, notes, and snippets.

View axeII's full-sized avatar
🤺
Breaking home network again

Alesh Lerch axeII

🤺
Breaking home network again
View GitHub Profile
@axeII
axeII / docker-cleanup-resources.md
Created June 26, 2020 11:25 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm