1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > Docker-查看镜像仓库中镜像的版本信息

Docker-查看镜像仓库中镜像的版本信息

时间:2018-12-15 13:05:40

相关推荐

Docker-查看镜像仓库中镜像的版本信息

通过docker安装某个软件时,经常需要选择版本号否则默认安装lastest,docker search只能查询出docker仓库中是否存在该软件的镜像并不能查看到版本号,如果想要查看某docker镜像的全部版本,就需要用到以下方式。

方案一:curl方式查看

docker_img为镜像名

curl https://registry./v1/repositories/${docker_img}/tags | python3 -m json.tool | more

需要在机器上安装python3(参考Docker——安装Python3)。

curlhttps://registry./v1/repositories/sameersbn/postgresql/tags | python3 -m json.tool | more

curl https://registry./v1/repositories/sameersbn/postgresql/tags | python3 -m json.tool | more

方案二:浏览器中查看

直接在浏览器中个输入下面URL格式的地址查询

https://registry./v1/repositories/${docker_img}/tags

https://registry./v1/repositories/yandex/clickhouse-server/tags

https://registry./v1/repositories/yandex/clickhouse-client/tags

参考文章1:Docker-查看镜像仓库中镜像的版本信息_^o^Smile^_^的博客-CSDN博客_docker 查看仓库镜像版本

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。