gpt4 book ai didi

Azure应用程序服务未将Gitlab容器注册表配置选择为私有(private)存储库

转载 作者:行者123 更新时间:2023-12-02 18:10:38 28 4
gpt4 key购买 nike

我有一个应用程序容器推送到 gitlab 容器注册表。我正在尝试将其作为容器部署到 azure web 应用程序服务中。我根据azure的文档尽我所能地进行了配置。但我不明白我错过了什么,因为 azure 日志显示 azure 仍在尝试连接到 docker hub 注册表。

Here consider that image with tag latest is provided i.e image:latest

在日志中我得到以下内容

2019-05-13 09:21:49.741 ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://registry-1.docker.io/v2/library/<image-name>/manifests/latest: unauthorized: incorrect username or password"}

2019-05-13 09:21:49.743 ERROR - Pulling docker image <image-name> failed:
2019-05-13 09:21:49.743 INFO - Pulling image from Docker hub: library/<image-name>
2019-05-13 09:21:50.795 ERROR - DockerApiException: Docker API responded with status code=NotFound, response={"message":"pull access denied for <image-name>, repository does not exist or may require 'docker login'"}

2019-05-13 09:21:50.797 ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)

谁能告诉我我在这里可能做错了什么?我相信问题是注册表 url 配置。任何帮助将不胜感激。

最佳答案

对于面临同样问题的其他人,我的问题是我只给出了图像名称,必须输入图像注册表的全名 registry.gitlab.com/<group name>/<image name>

关于Azure应用程序服务未将Gitlab容器注册表配置选择为私有(private)存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56109448/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com