Reputation: 1489
I am trying to install Hadoop on Docker on top of docker-machine. Long story short, I need to be able to curl 172.17.0.1:8500
.
That works just fine from within the Virtual Machine but fails from within MacOS.
curl: (7) Failed connect to 172.17.0.1:8500; Operation timed out
What should I do to go around this issue?
Upvotes: 1
Views: 352
Reputation: 1489
Krisztian Horvath from sequenceiq/docker-ambari
was kind enough to help me out with that.
So, what you need to do is to
docker-machine ip default
to get VM_IP
your virtual machine IP and then
sudo route add -net 172.17.0.0/16 VM_IP
Upvotes: 2