[英]Prevent overwrite of Docker image tag in Azure Container registry
I have seen in the official docs that Docker images can be locked so that they cannot be deleted.我在官方文档中看到 Docker 图像可以锁定,因此无法删除。 Is it also possible to freeze a tag so that this tag can no more be overwriten to point to a different image?
是否也可以冻结标签以使该标签不再被覆盖以指向不同的图像?
My usecase is that I want to make sure that eg an image with tag 1.2.0 always points to exactly the same image for all times.我的用例是我想确保例如带有标签 1.2.0 的图像始终指向完全相同的图像。 The tags 1.2 and 1 may be moved but this "semvar" tag shall be stable.
标签 1.2 和 1 可以移动,但是这个“semvar”标签应该是稳定的。
Thank you谢谢
Unfortunately, the Azure lock cannot apply to the image tags.不幸的是,Azure 锁不能应用于图像标签。 Here is the description for the level that it can apply to:
以下是它可以适用的级别的描述:
Resource Manager locks apply only to operations that happen in the management plane, which consists of operations sent to https://management.azure.com .
资源管理器锁定仅适用于管理平面中发生的操作,其中包括发送到https://management.azure.com的操作。
You can use the Azure role-based access control to restrict whether the user can push or pull images.您可以使用Azure 基于角色的访问控制来限制用户是否可以推送或拉取图像。 But in this way, the limit will only implement on the repository, not deeper into the tag.
但是通过这种方式,限制只会在存储库上实现,而不是在标签的更深处。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.