static / start.sh
Clone04's picture
Update start.sh
0770607 verified
raw
history blame contribute delete
317 Bytes
#!/bin/bash
if [[ -z "${STATIC_IP}" ]]; then
echo "STATIC_IP environment variable not set. Exiting."
exit 1
fi
echo "Using static IP: ${STATIC_IP}"
# Configure network using Docker network settings
ip addr add ${STATIC_IP}/24 dev eth0
ip link set eth0 up
# Your application or sleep command
sleep infinity