We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b326528 commit 7c93323Copy full SHA for 7c93323
root/init.sh
@@ -25,7 +25,7 @@ if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then
25
26
# Get the container's IP address using hostname if not already set
27
if [ -z "${CONTAINER_IP}" ]; then
28
- CONTAINER_IP=$(hostname -i)
+ CONTAINER_IP=$(ip -4 addr show eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
29
export CONTAINER_IP
30
fi
31
envsubst '${DHCP_RANGE_START} ${CONTAINER_IP}' </defaults/dnsmasq-dhcpproxy.conf >>/config/dnsmasq/dnsmasq.conf
0 commit comments