#!/bin/bash # Get container IP address CONTAINER_IP=$(hostname -i) # Set it as an environment variable export CONTAINER_IP=$CONTAINER_IP