0

我们在私有 ACR 中有一些基础镜像,我们希望使用来自第一个注册表的基础镜像在其他 ACR 中构建镜像。构建失败并出现身份验证错误。

有没有办法将 az acr build agent 授权给远程 docker 注册表或不同的 ACR?

4

1 回答 1

0

您不能直接使用 build 命令从基础注册表中的基础映像构建目标注册表中的映像。因为 az acr build 仅支持以下源位置:本地源代码目录路径(例如 './src'),或 git 存储库的 URL(例如https://github.com/Azure-Samples/acr-build- helloworld-node.git )

您可以将容器映像导入容器注册表

az acr import \
  --name myregistry \
  --source docker.io/library/hello-world:latest \
  --image hello-world:latest
于 2021-07-27T10:01:04.680 回答