简体   繁体   English

防止覆盖 Azure 容器注册表中的 Docker 映像标记

[英]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.

相关问题 从Azure容器注册表部署Docker映像 - Deploying a Docker Image from Azure Container Registry 如何从Docker注册表中提取容器映像以部署Azure容器 - How to pull container image from docker registry to deploy azure container 无法在 azure 容器注册表上运行 docker 图像的实例 - Cannot run an instance of a docker image on azure container registry 将Docker映像从gitlab-ci推送到Azure容器注册表 - Pushing Docker image from gitlab-ci to Azure Container Registry 如何使用 terraform 将 docker 映像推送到 Azure 容器注册表? - How to push a docker image to Azure container registry using terraform? Azure DevOps Pipelines 将 Docker 映像推送到 Container Registry 被拒绝 - Azure DevOps Pipelines push Docker image to Container Registry Denied 将个人 docker 映像上传到 Azure 容器注册表 - ErrImagePull - Uploading personal docker image to Azure Container Registry - ErrImagePull 如何通过 REST API 修改 azure 容器注册表上的图像标记? - How to modify image tag on azure container registry via rest API? Azure Devops - 使用 docker 和 Azure 容器注册表 (ACR) 发布管道 - 标记问题 - Azure Devops - release pipeline with docker and Azure Container Registry (ACR) - problem with tag Docker 映像的 Azure 私有注册表 - Azure private registry for docker image
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM