Skip to content

Instantly share code, notes, and snippets.

@vallettea
Last active December 7, 2015 13:46
Show Gist options
  • Select an option

  • Save vallettea/14ae0c25abd76782d8f9 to your computer and use it in GitHub Desktop.

Select an option

Save vallettea/14ae0c25abd76782d8f9 to your computer and use it in GitHub Desktop.
Clean docker
## to check file and directories that are taking place
cd /path/to/some/where
$ du -hsx * | sort -rh | head -10
docker rm -v (docker ps -a | grep Exited | awk '{print $1}')
docker rmi (docker images -aq)
## to clean orphaned volumes
https://github.com/chadoe/docker-cleanup-volumes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment