搜索镜像标签:
1 #!/bin/env bash 2 3 repo_url=https://registry.hub.docker.com/v1/repositories 4 echo -ne "\033[7mInput image name(search for tags):\033[0m" 5 read image_name 6 curl -s ${repo_url}/${image_name}/tags | python -m json.tool | awk -F\" '$2=="name" {print $4}'
可以直接浏览器访问:https://registry.hub.docker.com/v1/repositories/tensorflow/tensorflow/tags