overleaf/server-ce/00_set_docker_host_ipaddress.sh

3 lines
224 B
Bash
Raw Normal View History

2015-02-09 11:27:44 -05:00
#!/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