00_set_docker_host_ipaddress.sh 247 B

12345
  1. #!/bin/bash
  2. set -e -o pipefail
  3. # See the bottom of http://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
  4. echo "`route -n | awk '/UG[ \t]/{print $2}'` dockerhost" >> /etc/hosts