Last active
January 19, 2020 19:13
-
-
Save nicbet/5fa5a98f41dcdd2ffbae56e8cda4d78d to your computer and use it in GitHub Desktop.
Delete all <none> Docker Images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias clean_docker_images='for i in (docker image ls | grep none | tr -s " " | cut -d " " -f 3); docker image rm $i; end' | |
funcsave clean_docker_images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `docker image ls | grep none | tr -s ' ' | cut -d " " -f 3`; do docker image rm $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment