[英]Unable to pull docker image, getting 'remote error: access denied'
I'm trying to check the installation docker pull hello-world
我正在尝试检查安装
docker pull hello-world
But getting the following error: 但是得到以下错误:
Pulling repository hello-world
Get https://index.docker.io/v1/repositories/library/hello-world/images: remote error: access denied
I have CentOS 6.5 我有CentOS 6.5
Docker version 1.7.1, build 786b29d/1.7.1 Docker版本1.7.1,版本786b29d / 1.7.1
I'm in a corporate network but curl https://index.docker.io/v1/repositories/library/hello-world/images
forks fine. 我在公司网络,但
curl https://index.docker.io/v1/repositories/library/hello-world/images
分叉。
What might be the issue? 可能是什么问题?
Thanks in advance! 提前致谢!
I got this error while I was trying to pull mongodb
image instead of mongo
. 我在尝试拉取
mongodb
图像而不是mongo
出现此错误。
So make sure image name is correct. 因此请确保图像名称正确无误。 The very same error message happens on both
run
and pull
commands. run
和pull
命令都会出现同样的错误消息。
Had the same problem & error on the host working via proxy. 在通过代理工作的主机上有相同的问题和错误。
In essence - if you are behind an HTTP proxy server, you will need to add proxy configuration in the Docker systemd service file. 实质上 - 如果您位于HTTP代理服务器后面,则需要在Docker systemd服务文件中添加代理配置。
https://docs.docker.com/engine/admin/systemd/ https://docs.docker.com/engine/admin/systemd/
(See at "HTTP proxy" section). (参见“HTTP代理”部分)。
This helped me. 这对我有帮助。
Did you add your user in docker group 您是否在docker组中添加了用户?
https://docs.docker.com/engine/installation/linux/centos/#/create-a-docker-group https://docs.docker.com/engine/installation/linux/centos/#/create-a-docker-group
Otherwise, you should execute docker command with sudo before 否则,你应该先用sudo执行docker命令
docker pull hello-world
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.