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

3

5

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!

Willettawillette answered 22/9, 2016 at 8:16 Comment(0)
D
5

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.

Donyadoodad answered 21/7, 2018 at 12:14 Comment(1)
Thanks. This worked for me. Also make sure you add the correct tag/ version.Ullage
S
3

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.

Stench answered 20/12, 2016 at 15:45 Comment(0)
P
1

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
Pasqualepasqueflower answered 22/9, 2016 at 11:20 Comment(2)
I didn't see the part with proxy, sorry. I had also same issue, docker don't care System proxy already configurés. You have to configuré docker. Hère is à link about that. crondev.com/running-docker-behind-proxyPasqualepasqueflower
thanks, Thibaut, with setting up proxy it's working nowWillettawillette

© 2022 - 2024 — McMap. All rights reserved.