At my setup (fresh Docker for Mac 1.12.1, OS X 10.11) the route command in d4m-nfs.sh returns localhost for the default gateway instead of the IP of the gateway. Trying to NFS mount from localhost fails of course.
Solution: the command /sbin/ip route|awk '/default/ { print $3 }' returns the IP of the gateway.
At my setup (fresh Docker for Mac 1.12.1, OS X 10.11) the
route
command ind4m-nfs.sh
returns localhost for the default gateway instead of the IP of the gateway. Trying to NFS mount from localhost fails of course.Solution: the command
/sbin/ip route|awk '/default/ { print $3 }'
returns the IP of the gateway.(Courtesy of http://stackoverflow.com/questions/22944631/how-to-get-the-ip-address-of-the-docker-host-from-inside-a-docker-container.)