Skip to content

Instantly share code, notes, and snippets.

@jhidalgo3
Created October 22, 2017 00:19
Show Gist options
  • Save jhidalgo3/1f413926b468e18d29ede0027a05da91 to your computer and use it in GitHub Desktop.
Save jhidalgo3/1f413926b468e18d29ede0027a05da91 to your computer and use it in GitHub Desktop.
Docker clean scripts

Delete all container status=exited

docker rm $(docker ps -a -q -f "status=exited")

Delete all untagged images

docker rmi $(docker images -q --filter "dangling=true")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment