push to local registry failed with error: getsockopt: no route to host #1797
Steps to reproduce the behavior
$ docker pull hello-world
$ docker tag hello-world 192.168.65.80:5000/test/hello
$ docker push 192.168.65.80:5000/test/hello
mac, ubuntu and registry there have different IPs, but in the same local network.
Thanks for your report.
I believe this is the same as #1803: there is a clash between the internal network used by Docker for Mac and a network in your environment. In the short term, here are some instructions describing how to customise the network used by Docker for Mac. The upcoming 17.07 edge release should have a UI element in the preferences which makes this easier.
@Diluka thanks for the report. I had a look and unfortunately discovered a bug in the implementation and a missing test case for the "Docker IP" feature. I've fixed the bug and implemented the test case, so hopefully the Preferences menu -> Advanced -> Docker IP settings should be working in the next edge release. Sorry for the confusion!
Issues go stale after 90d of inactivity.
Prevent issues from auto-closing with an
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.