overleaf/server-ce/init_scripts/00_set_docker_host_ipaddress.sh
2016-05-23 12:43:26 +01:00

3 lines
No EOL
224 B
Bash
Executable file

#!/bin/sh
# 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
echo "`route -n | awk '/UG[ \t]/{print $2}'` dockerhost" >> /etc/hosts