图片是否可以具有多个标签? [英] Is it possible for image to have multiple tags?
本文介绍了图片是否可以具有多个标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我推送新图像回购时,我希望它具有两个标签,例如 0.2
和 latest
。例如,这将允许始终使用 latest
标签提取最新的图像版本,并通过使用 0.2
标签获取特定的图像版本。
When I am pushing new image to repo I would like it to have two tags for example 0.2
and latest
. This would allow to always pull latest image version by using latest
tag and a specific version by using 0.2
tag for example. Is it possible with docker?
有什么解决方法吗?我看到的唯一解决方案是进行两次单独的推送...
Is there any workaround? The only solution I see is to make two separate pushes...
推荐答案
您可以创建多个标签:
docker tag <id> <user>/<image>:0.2
docker tag <id> <user>/<image>:latest
并将其推送。
这篇关于图片是否可以具有多个标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文