Skip to content

Instantly share code, notes, and snippets.

View dcambria's full-sized avatar

Cambría dcambria

  • Bureau IT
  • São Paulo
View GitHub Profile
dcambria /
Created November 14, 2018 21:08 — forked from bastman/
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:

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

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