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!

zjor
  • 994
  • 2
  • 12
  • 22

3 Answers3

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.

Kunok
  • 8,089
  • 8
  • 48
  • 89
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.

Vladimir
  • 429
  • 7
  • 21
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
Thibaut
  • 2,596
  • 2
  • 24
  • 24
  • 1
    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. https://crondev.com/running-docker-behind-proxy/ – Thibaut Sep 22 '16 at 21:29
  • thanks, Thibaut, with setting up proxy it's working now – zjor Sep 23 '16 at 12:16