moby: Docker Pull throws Could not reach any registry endpoint error
BUG REPORT INFORMATION
Hello,
i was been trying to fetch some of the base images from the registry and its throwing a error saying the registry endpoint is not reachable .
Docker Version
vagrant@vagrant-ubuntu-trusty-64:~$ sudo docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64
Output
vagrant@vagrant-ubuntu-trusty-64:~$ sudo docker pull mysql:latest
Pulling repository mysql
Could not reach any registry endpoint
Some Errors to add
Get https://registry-1.docker.io/v1/repositories/library/mysql/tags: read tcp 52.7.235.159:443: i/o timeout
Get https://registry-1.docker.io/v1/repositories/library/mysql/tags: read tcp 54.208.130.47:443: i/o timeout
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 24 (3 by maintainers)
I started getting this on all my cloud hosted machines and started looking at logs and everything, realized Docker Hub was spitting back some 403 responses and status was all ok.
Looking at the requests from newer clients I noticed they were performing requests under a different API version, so went back on some previous communication I had received from Docker via email to notice clients version 1.5 and before were deprecated, so guessing Docker Hub won’t support them anymore.
Thought I’d document it here in case other people come across the same issue.
Thanks for @robertoandrade 's answer. I resolved the problem on Centos by issuing command:
“docker pull” works well after upgrading to v1.9