Azure 应用服务未选择 Gitlab 容器注册表配置作为私有存储库

Has*_*aan 2 azure gitlab docker

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

这里考虑提供带有标签 latest 的图像,即 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)
Run Code Online (Sandbox Code Playgroud)

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

Has*_*aan 7

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