09-17 16:56 docker 技巧 Docker search 镜像时时显示 tag 新建脚本 `toush /bin/docker-search-show-tag.sh` 然后写入脚本 ```shell #!/bin/sh # # Simple script that will display docker repository tags. # # Usage: # $ docker-show-repo-tags.sh ubuntu centos for Repo in $* ; do curl -s -S "https://registry.hub.docker.com/v2/repositories/library/$Repo/tags/" | \ sed -e 's/,/,\n/g' -e 's/\[/\[\n/g' | \ grep '"name"' | \ awk -F\" '{print $4;}' | \ sort -fu | \ sed -e "s/^/${Repo}:/" done ``` 使用 `docker-search-show-tag.sh [keywords]` ------------ 原文链接:[docker search时列出tag](http://suntus.github.io/2017/12/07/docker%20search%E6%97%B6%E5%88%97%E5%87%BAtag/ "docker search时列出tag")