Skip to content

Instantly share code, notes, and snippets.

@pstadler
Last active December 19, 2019 08:44
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 pstadler/aad9e3ab862f3ec283e063d70ff2e1b1 to your computer and use it in GitHub Desktop.
Save pstadler/aad9e3ab862f3ec283e063d70ff2e1b1 to your computer and use it in GitHub Desktop.
Docker Cleanup
# use this:
docker system prune -a --volumes
# outdated:
docker rm $(docker ps -qa --no-trunc --filter "status=exited")
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment