Skip to content

Instantly share code, notes, and snippets.

@erighetto
Created October 16, 2016 11:45
Show Gist options
  • Save erighetto/f908c3559de49f373aff6525ebcbd254 to your computer and use it in GitHub Desktop.
Save erighetto/f908c3559de49f373aff6525ebcbd254 to your computer and use it in GitHub Desktop.
stop & remove container + remove volume
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) && docker volume rm $(docker volume ls -qf dangling=true)
@erighetto
Copy link
Author

docker rmi $(docker images -q)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment