Skip to content

Instantly share code, notes, and snippets.

@c0ze
Created March 8, 2018 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c0ze/7c41b7827a029b49d5da77f9239a553c to your computer and use it in GitHub Desktop.
Save c0ze/7c41b7827a029b49d5da77f9239a553c to your computer and use it in GitHub Desktop.
DOCKER=`which docker`
$DOCKER rm -v $($DOCKER ps -a -q -f status=exited)
$DOCKER rmi $($DOCKER images -f "dangling=true" -q)
$DOCKER volume rm $($DOCKER volume ls -qf dangling=true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment