# The IP address of the Docker host
# This file is meant to be included in other shell scripts.
# This has been tested with Ubuntu and CentOS.  The ifconfig output is
# different.

if [ -f '/etc/redhat-release' ]; then
    ip=`ifconfig docker0 | grep "inet " | awk '{print $2}'`
else
    ip=`ifconfig docker0 | grep "inet addr" | awk -F '[: ]+' '{print $4}'`
fi
