在 Azure 容器注册表中连接注册表时出错
Getting error while connect connected registry in Azure Container Registry
我尝试在 Azure 容器注册表.
中使用 Connected Registry 在本地同步容器映像
然后我按照 ACR 文档创建了一个设置 (https://docs.microsoft.com/en-us/azure/container-registry/quickstart-deploy-connected-registry-iot-edge-cli)
Getting error while deploying the modules
Troubleshoot - Container Log
ACR Token Details
ACR Scope Details
出现范围不足的错误。但是我给了所有存储库的 ReadWrite 权限。还有其他方法可以解决这个问题吗?
- 请检查您是否已为存储库推送所需的注册表授予权限
content/read , content/write
范围,如果存储库存在,我希望您已经完成了。
- 如果权限配置正确,请检查admin用户是否启用。
作用域也可以指实际角色的操作权限
Azure Container Registry,您可以通过两种方式登录。
一 - 使用命令 az acr login
-n azureacrServer -u 用户名 -p 密码。那么你登录后就拥有了所有者权限。
另一种是使用命令 docker login
azureacrServer -u servicePrincipalId -p sppassword 使用 服务主体 登录。这样,你登录后就拥有了服务主体的权限
请检查
Registry authentication options and container registry repository scoped permissions
参考文献:
我尝试在 Azure 容器注册表.
中使用 Connected Registry 在本地同步容器映像然后我按照 ACR 文档创建了一个设置 (https://docs.microsoft.com/en-us/azure/container-registry/quickstart-deploy-connected-registry-iot-edge-cli)
Getting error while deploying the modules
Troubleshoot - Container Log
ACR Token Details
ACR Scope Details
出现范围不足的错误。但是我给了所有存储库的 ReadWrite 权限。还有其他方法可以解决这个问题吗?
- 请检查您是否已为存储库推送所需的注册表授予权限
content/read , content/write
范围,如果存储库存在,我希望您已经完成了。
- 如果权限配置正确,请检查admin用户是否启用。
作用域也可以指实际角色的操作权限
Azure Container Registry,您可以通过两种方式登录。
一 - 使用命令 az acr login
-n azureacrServer -u 用户名 -p 密码。那么你登录后就拥有了所有者权限。
另一种是使用命令 docker login
azureacrServer -u servicePrincipalId -p sppassword 使用 服务主体 登录。这样,你登录后就拥有了服务主体的权限
请检查
Registry authentication options and container registry repository scoped permissions
参考文献: