overleaf-server-arm/server-ce/init_scripts/100_set_docker_host_ipaddress.sh
2025-04-24 13:11:28 +08:00

6 lines
248 B
Bash
Executable File

#!/bin/bash
set -e -o pipefail
# 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