简体   繁体   中英

Unable to pull docker image, getting 'remote error: access denied'

I'm trying to check the installation 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

Docker version 1.7.1, build 786b29d/1.7.1

I'm in a corporate network but curl https://index.docker.io/v1/repositories/library/hello-world/images forks fine.

What might be the issue?

Thanks in advance!

I got this error while I was trying to pull mongodb image instead of mongo .

So make sure image name is correct. The very same error message happens on both run and pull commands.

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.

https://docs.docker.com/engine/admin/systemd/

(See at "HTTP proxy" section).

This helped me.

Did you add your user in docker group

https://docs.docker.com/engine/installation/linux/centos/#/create-a-docker-group

Otherwise, you should execute docker command with sudo before

docker pull hello-world

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM