Ability to have some way of communicating with the host the container sits on while on a VPN
Tried all IP addresses available but none will resolve the service I have running on the host
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta8.2
Running diagnostic tests:
[OK] Moby booted
Docker logs are being collected into /tmp/20160425-183548.tar.gz
Most specific failure is: No error was detected
Your unique id is: 6304D392-DDD8-40D9-AB48-20B5BFA37F9C
Please quote this in all correspondence.
Steps to reproduce the behavior
Create a container and attempt to connect to a URL on the host
I just brought up something simple like Tomcat on the host to see if the main page would resolve i.e. http://host:8080/
I tried with the hostnet and nat configurations for network as well as with native/port-forwarding true and false.
I tried to get the proper host ip address by the last entry in the container /etc/hosts file the ip addresses shown in the network (hostnet configuration) and numerous others. While using the old docker-machine configuration it was pretty simple to get that IP address, is there another way to get the host ip address that can be used while on a VPN ?
My host is on a VPN and only port forwarding will work between host and container, I have a virtual machine running in VirtualBox on the host that contains the database and would like to be able to access it using the new beta docker.
**** Figured this out by doing the following:
- pinata set network = hostnet
- pinata set native/port-forwarding = true
- Look up utun0 ip address and use it for dockerhost
- Add this to your docker run
- From container you can reach the host using dockerhost