spooky-bot / get_ip.sh
Mahfujul's picture
Create get_ip.sh
0a05367 verified
raw
history blame contribute delete
No virus
139 Bytes
#!/bin/bash
# Get container IP address
CONTAINER_IP=$(hostname -i)
# Set it as an environment variable
export CONTAINER_IP=$CONTAINER_IP