moby: can't reach index.docker.io
hi guys, I’m trying to use docker in fedora19. I followed the steps introduced in http://docs.docker.io/en/latest/installation/fedora/. The docker version is docker-io-0.7.0-14.fc19.x86_64. But when i run the command “docker search ubuntu” , it reports the following error messages:
docker search ubuntu
2013/12/13 03:40:39 Error: Get https://index.docker.io/v1/search?q=ubuntu: lookup index.docker.io: no such host
when I run docker service in debug mode, the error is another one:
docker search ubuntu
2013/12/13 03:22:59 Error: Get https://index.docker.io/v1/search?q=ubuntu: x509: certificate signed by unknown authority
test the website with wget:
wget https://index.docker.io/v1/search?q=ubuntu
–2013-12-13 03:06:10-- https://index.docker.io/v1/search?q=ubuntu Connecting to 128.5.64.30:3128… connected. ERROR: cannot verify index.docker.io’s certificate, issued by ?.O=HW Technologies Co., Ltd./OU=IT/L=HW Internal Network/C=CN/CN=HW Secure Internet Proxy CA?. Unable to locally verify the issuer’s authority. To connect to index.docker.io insecurely, use `–no-check-certificate’.
according to the message, add `–no-check-certificate’, run wget again:
wget https://index.docker.io/v1/search?q=ubuntu --no-check-certificate
–2013-12-13 03:06:27-- https://index.docker.io/v1/search?q=ubuntu Connecting to 128.5.64.30:3128… connected. WARNING: cannot verify index.docker.io’s certificate, issued by ?.O=HW Technologies Co., Ltd./OU=IT/L=HW Internal Network/C=CN/CN=HW Secure Internet Proxy CA?. Unable to locally verify the issuer’s authority. Proxy request sent, awaiting response… 200 OK Length: unspecified [application/json] Saving to: ?.earch?q=ubuntu?
[ <=> ] 2,494 --.-K/s in 0s
2013-12-13 03:06:29 (42.7 MB/s) - ?.earch?q=ubuntu?.saved [2494]
While i run the command “docker run -i -t ubuntu /bin/bash”, it has the same problem:
docker run -i -t ubuntu /bin/bash
Unable to find image ‘ubuntu’ (tag: latest) locally Pulling repository ubuntu 2013/12/13 03:38:11 Get https://index.docker.io/v1/images/ubuntu/ancestry: lookup index.docker.io: no such host
but “wget https://index.docker.io/v1/images/ubuntu/ancestry” report the 404 error. I know there must be something wrong with my network configure. But i try many methods mentioned in other similar questions, but it doesn’t work. Can you give me some advices? If I can’t reach index.docker.io host, how can I use a local image with docker? Thanks!
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 89 (27 by maintainers)
I am seeing similar issues with the cloudflare CDN host. Adding the an entry in /etc/hosts to point to registry-1.docker.io seems to do the trick. However, I’d like to check if there is a cleaner solution to this problem.
Details:
This works
But without the /etc/hosts line I get a 404 error as described above. This is from a host in the US without any firewall restrictions.
I was able to get it to work by changing the default URL from
get.docker.io
toget.docker.com
Same situation here, except I’m running the Docker daemon inside Ubuntun in a VM (Virtualbox) on a Windows 7 machine.
Our proxy does MITM by injecting the CA as the issuer of whatever certificates we are given by the outside world. If your MITM works differently, that could explain it.
On Thu, 26 Mar 2015 at 16:51 Paul Polishchuk notifications@github.com wrote: