Skip to content

Instantly share code, notes, and snippets.

@joeyslalom
Last active September 18, 2020 18:20
Show Gist options
  • Save joeyslalom/cff5db48dfe9382f1b5b2c74f09a5dfd to your computer and use it in GitHub Desktop.
Save joeyslalom/cff5db48dfe9382f1b5b2c74f09a5dfd to your computer and use it in GitHub Desktop.
docker foo
# remove untagged
docker rmi $(docker images -f "dangling=true" -q)
# remove exited
docker rm $(docker ps -q -f status=exited)
@joeyslalom
Copy link
Author

docker container prune --force

@joeyslalom
Copy link
Author

docker rm docker ps -q -a --filter status=exited
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