docker-archive / docker-registry

This is **DEPRECATED**! Please go to https://github.com/docker/distribution
Apache License 2.0
2.88k stars 879 forks source link

v1 ping attempt failed with timeout error if pull from multiple machine #964

Open nkwangleiGIT opened 9 years ago

nkwangleiGIT commented 9 years ago

Hi,

I setup a private docker registry, and it's working well if pull from one docker client at one time. But if I did 'docker pull' from multiple docker client in the meanwhile, the later docker pull will get the error below afer 10-20 seconds

Error: v1 ping attempt failed with error: Get http://ip_docker_registry:5000/v1/_ping: dial tcp ip_docker_registry:5000: i/o timeout

And "curl http://ip_docker_registry:5000/v1/_ping" can work well after about 40 seconds, even it's some long time.

For now, I'm using dev mode(local file) as the image repository. Seems the timeout occurs on docker client who will do the pull, is there any way that we can set the timeout on the docker client side? or anything else I can do on docker registry server side?

Thanks.

liucc52 commented 9 years ago

I met the same question

[root@centos-7 /]# docker push 10.145.157.98/nginx:latest FATA[0040] Error: v1 ping attempt failed with error: Get http://10.145.157.98/v1/_ping: read tcp 172.19.64.37:8080: i/o timeout