尝试从ACR提取图像时,Azure发布管道失败

dcy

我尝试将Azure管道用于ci和cd。

1-我的应用程序映像已构建并推送到Azure容器注册表。

2-释放管道尝试从ACR提取图像,但会出错。来自容器设置的日志:

INFO  - Pulling image: registryname/repo:latest
ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://registry-1.docker.io/v2/registryname/repo/manifests/latest: unauthorized: incorrect username or password"}

ERROR - Pulling docker image registryname/repo:latest failed:
INFO  - Pulling image from Docker hub: registryname/repo:latest
ERROR - DockerApiException: Docker API responded with status code=NotFound, response={"message":"pull access denied for registryname/repo, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"}

ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)
INFO  - Stopping site appname because it failed during startup.

来自配置的SS: 在此处输入图片说明

谢谢你的帮助。

Charles Xu

当您使用ACR存储图像并将其中的图像部署到Azure Web App时,需要将图像名称设置为ACRName.azurecr.io/image:tag,而不仅仅是图像名称和标记。并设置环境变量,例如:

DOCKER_REGISTRY_SERVER_USERNAME-ACR服务器的用户名。DOCKER_REGISTRY_SERVER_URL-ACR服务器的完整URL。(例如,https://my-server.azurecr.io。)DOCKER_REGISTRY_SERVER_PASSWORD-ACR服务器的密码。

凭据应具有足够的权限。一切正常后,容器日志将如下所示:

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Azure DevOps发布管道每次都会失败

尝试发布Azure Function时出现“发布失败”的通用,非描述性错误消息

Azure Devops-具有docker和Azure Container Registry(ACR)的发布管道-标记问题

Azure DevOps,发布管道,Powershell任务:即使操作成功后,提取显示为失败的.tar.gz

运行pylint时Azure DevOps管道失败

Azure发布管道,在失败阶段之后继续

Azure DevOps发布管道在kubectl命令上失败

Azure DevOps 部署失败时的发布步骤

尝试通过管道传递到cmd.ExtraFiles时失败

尝试使用python和openimageIO提取子图像失败

如何配置Azure应用服务以使用Terraform从ACR中提取图像?

Flutter build Gradle尝试发布Android App APK时失败

创建Azure Devops发布管道时出错-POST Rest API

通过 Azure 管道发布 vsts 扩展时出错

在 Azure Devops 中部署发布管道时出错

来自 DevOps 的交叉发布:Azure 发布管道使用 Expand-Archive 命令失败

在Azure DevOps管道中将Docker映像任务推送到ACR失败,带有“未授权:需要身份验证”

当Azure WebJob无法启动/运行时无法使Azure DevOps发布管道失败

添加SonarQube时Azure Devops CI管道失败

Azure DevOps CI/CD 管道:失败时恢复提交

尝试发布 Azure Function App (python) 失败,存储库不再有发布文件错误

尝试从Visual Studio发布Azure函数时出错

尝试导入图像支持时,指南针编译失败

尝试加载图像时使用 spritesheets 失败

Azure DevOps PublishTestResults任务-测试失败时如何发布结果

Bitbucket管道:使用环境变量从GCR中提取图像失败

Azure DevOps,YAML发布管道?

Azure Devops 发布管道变量

自动触发Azure发布管道