Created
September 19, 2018 01:29
-
-
Save chanjarster/14dbb0e5115bada802526d8e0aca0dbc to your computer and use it in GitHub Desktop.
清理没有tag的docker image
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 | |
docker image ls | grep '<none>' | awk '{print $3}' | xargs -n1 -I{} docker image rm {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment