Web应用程序中的容器错误:“存储库不存在或可能需要'docker login'" [英] Error in Web app for containers: "repository does not exist or may require 'docker login'"

查看:433
本文介绍了Web应用程序中的容器错误:“存储库不存在或可能需要'docker login'"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我正在尝试获取Azure Web应用以使容器正常工作.
在dev env和Gitlab容器注册表之间一切正常.
(我可以从dev env运行我的docker容器)

但是我在天蓝色方面有问题.
日志显示:
2018-08-12 18:32:58.261信息-发布docker pull [x]:latest
2018-08-12 18:32:59.462错误-docker pull返回了STDERR>>
守护程序的错误响应:[x]的拉式访问被拒绝,存储库不存在或可能需要'docker login'

Hi

Im trying to get Azure Web app for containers to work.
Everything works fine between dev env and Gitlab container registry.
(I can run my docker container from dev env)

But Im having problems on the azure side.
The log says:
2018-08-12 18:32:58.261 INFO  - Issuing docker pull [x]:latest
2018-08-12 18:32:59.462 ERROR - docker pull returned STDERR>>
Error response from daemon: pull access denied for [x], repository does not exist or may require 'docker login'

我在应用程序设置"和容器设置"中仔细检查了设置.
用户名/密码设置正确,等等...

I have double checked settings in Application settings and Container settings.
Username/password is correctly set etc...

我使用的是未经修改的vs2k17生成的dockerfile.
但是,我不得不将其在文件层次结构中上移了一步,因为docker build失败,
因为否则无法找到csproj文件(!)

如何解决此问题?

Im using the dockerfile generated by vs2k17, non-modified.
But, I had to move it one step up in the file hierarchy because docker build failed,
because it could not find the csproj file otherwise(!)

How do I troubleshoot this?

推荐答案

确保服务主体帐户至少具有读取器"角色,以便能够从Azure容器注册表中提取图像 (请参阅 对Docker容器注册表进行身份验证 ).另外,如果您的存储库为私有",则必须分配下载权限.您可以参考类似的对话 此处 .

Ensure that the service principal account have at least ‘reader’ role to be able to pull images from the Azure container registry (refer authenticating docker container registry). Also, if your repository is ‘private’, you have to assign permissions to download it. You may refer to similar conversation here.

.

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here.


这篇关于Web应用程序中的容器错误:“存储库不存在或可能需要'docker login'"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆