Skip to content

Instantly share code, notes, and snippets.

@ety001
Created July 20, 2020 07:49
Show Gist options
  • Save ety001/9179749f7f75bf3412fab03a156a391e to your computer and use it in GitHub Desktop.
Save ety001/9179749f7f75bf3412fab03a156a391e to your computer and use it in GitHub Desktop.
* * * * * docker ps -a -q -f status=exited | xargs --no-run-if-empty docker rm -v
* * * * * docker images -f "dangling=true" -q | xargs --no-run-if-empty docker rmi
* * * * * docker volume ls -qf dangling=true | xargs --no-run-if-empty docker volume rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment