Skip to content

Instantly share code, notes, and snippets.

@vaijab
Last active December 1, 2015 11:28
Show Gist options
  • Save vaijab/1e47a177f2b65875fd1b to your computer and use it in GitHub Desktop.
Save vaijab/1e47a177f2b65875fd1b to your computer and use it in GitHub Desktop.
for n in $(docker ps -a | awk '/Exited \([0-9]*/ {print $1}'); do docker rm -f -v ${n}; done
docker rmi $(docker images | awk '/^<none>/ {print $3}')
wget -q https://github.com/chadoe/docker-cleanup-volumes/raw/master/docker-cleanup-volumes.sh
bash docker-cleanup-volumes.sh -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment