-
-
Save flxxyz/ae7c8153dbea8cd922edf0ffe700bdf1 to your computer and use it in GitHub Desktop.
通配符删除 docker 镜像
This file contains 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 | |
TXT="包含的文本" | |
docker rmi $(docker images | grep $TXT | awk '$1 { print $1":"$2 }') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment