Skip to content

Instantly share code, notes, and snippets.

@mijdavis2
Created September 11, 2019 15:58
Show Gist options
  • Save mijdavis2/c717bdd02fbab12080f80b0999112cdc to your computer and use it in GitHub Desktop.
Save mijdavis2/c717bdd02fbab12080f80b0999112cdc to your computer and use it in GitHub Desktop.
Docker cleanup
#!/bin/bash
#
# To add this as a fish function:
# function dockercleanup
# docker volume rm (docker volume ls -f dangling=true -q); docker system prune -a
# end
# funcsave dockercleanup
#
docker volume rm $(docker volume ls -f dangling=true -q)
docker system prune -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment