本文介绍了运营公众& amp; amp;关于Azure Web Service身份验证问题的私有映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当运行来自azure容器注册表的私有容器注册表图像和来自docker.io的公共图像的混合时,但是在docker.io上遇到了身份验证问题

When running a mixture of private container registry images from the azure container registry and also a public image from docker.io "docker:latest" but am getting an authentication issue on the docker.io

Docker撰写文件

    image: docker:latest

问题是我只能在azure门户上登录其中的一个,是否可以同时登录到两者?还是我打算在开发项目中创建一个新的docker文件,它将文件提取并存储在我的Azure容器注册表中?

the issue is I only have the option to log in to one of them on the azure portal, is there a way to login into both ? or am I meant to create a new docker file in the development project which will pull and store the image on my azure container registry?

错误日志:

2019-11-21 14:07:32.959错误-DockerApiException:Docker API响应,状态代码为= InternalServerError,响应为{{"message"":"获取 https://registry-1.docker.io/v2/library/docker/manifests/latest :未经授权:不正确用户名或密码""}

2019-11-21 14:07:32.959 ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://registry-1.docker.io/v2/library/docker/manifests/latest: unauthorized: incorrect username or password"}

2019-11-21 14:07:32.959错误-拉docker镜像docker:latest失败:

2019-11-21 14:07:32.959 ERROR - Pulling docker image docker:latest failed:

2019-11-21 14:07:32.959信息-从Docker集线器中提取图像:库/docker:最新

2019-11-21 14:07:32.959 INFO - Pulling image from Docker hub: library/docker:latest

2019-11-21 14:07:34.061信息-最新从库/泊坞窗中拉出

2019-11-21 14:07:34.061 INFO - latest Pulling from library/docker

2019-11-21 14:07:34.431信息-摘要:sha256:813da205ebebb2973c7a8ecac81c49e0510e0de22bff954a0455b582a572eda2

2019-11-21 14:07:34.431 INFO - Digest: sha256:813da205ebebb2973c7a8ecac81c49e0510e0de22bff954a0455b582a572eda2

2019-11-21 14:07:34.431信息-状态:图像对于docker:latest是最新的

2019-11-21 14:07:34.431 INFO - Status: Image is up to date for docker:latest

2019-11-21 14:07:34.437信息-拉图像成功,耗时:0分钟1秒

2019-11-21 14:07:34.437 INFO - Pull Image successful, Time taken: 0 Minutes and 1 Seconds

2019-11-21 14:07:34.464信息-网站的启动容器

2019-11-21 14:07:34.464 INFO - Starting container for site

推荐答案

不幸的是,Azure Web App上的多个容器当前仅支持一个注册表.这意味着无论ACR还是Docker集线器,所有映像都必须属于一个注册表.我找到的文档此处:

Unfortunately, the multiple containers on Azure Web App only support one registry currently. It means all the images must belong to one registry, no matter the ACR or Docker hub. The document I found here:

因此,我建议您可以将所有将要使用的图像推送到ACR,然后仅使用它.

So, I recommend you could push all the images which would be used to the ACR then only use it.

这篇关于运营公众& amp; amp;关于Azure Web Service身份验证问题的私有映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 22:04