-
Notifications
You must be signed in to change notification settings - Fork 875
FATA[0000] Error: v1 ping attempt failed with error: Get http://localhost:5000/v1/_ping: dial tcp 127.0.0.1:5000: connection refused #1006
Comments
I should add that a curl of the v1/_ping does work. Returns an empty object. curl -XGET localhost:5000/v1/_ping |
@eaoliver where does you docker daemon live? Also, can you provide a copy of your docker daemon logs, preferably ran in debug mode? (-D) Thanks. |
I am running Docker version 1.6.2, build 7c8fca2 on boot2docker on a Mac. Following is the output from docker.log for: docker push localhost:5000/debian time="2015-05-23T00:38:35Z" level=debug msg="Calling POST /images/{name:.}/push" Now that I see the log, I can confirm that 127.0.0.1 is not accessible from within the boot2docker. docker@boot2docker:/var/log$ curl -XGET http://localhost:5000/v1/search The boot2docker routing table seems to be correct too: docker@boot2docker:/var/log$ route Since this is not an issue with the registry, closing. |
@eaoliver let me know if I can help you debug this on irc (#docker-distribution) FWIW I recommend you move to Docker Machine instead of b2d. |
@dmp42 Thanks. |
Why move the thread to IRC... now we have no idea what the fix was |
@funkytaco moving to irc because github issues are not a proper forum for fast paced discussions about mis-configuration (slow answers, and lots of back and forth). Furthermore, this here was not an issue, but rather a misconfiguration IIRC. Finally, I strongly recommend to look into https://github.com/docker/distribution instead (registry:2) since the python registry here is now deprecated. |
@dmp42 Thanks. I've asked on Gitter and IRC, and while people were helpful, I've had no luck there. I am using registry:2, but I'm confused as to where to put |
@funkytaco https://github.com/docker/distribution/blob/master/docs/insecure.md#using-self-signed-certificates Every docker daemon that wants to pull or push to this registry will have to be configured that way. |
|
@funkytaco so create the folder |
For weeks I have been running a Docker registry:latest on a private server on AWS. I access it via an SSH tunnel listening on port 5000 and forwarding to localhost:5000 on the server running the Docker registry.
I'm still able to search the registry, and it returns the correct results.
curl -XGET localhost:5000/v1/search
{"num_results": 1, "query": "", "results": [{"description": null, "name": "library/debian"}]}
However, I am unable to push or pull images from the registry. Any push or pull request returns:
FATA[0000] Error: v1 ping attempt failed with error: Get http://localhost:5000/v1/_ping: dial tcp 127.0.0.1:5000: connection refused
That's it... no additional info.
The text was updated successfully, but these errors were encountered: