Do not write ip address to database, no longer needed.

See discussion in #39.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-03-04 10:43:01 +00:00
parent 612d087426
commit e9216cc716

View File

@ -10,26 +10,6 @@ pidfile="/run/docker.pid"
# future change this to use a hypervisor socket.
DOCKER_OPTS="${DOCKER_OPTS} -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"
if cat /proc/cmdline | grep -q 'com.docker.driverDir'
then
DRIVER="$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')"
INET=$(ifconfig eth0 2> /dev/null | grep 'inet addr' | cut -f 2 -d ":" | cut -f 1 -d " ")
if [ -d "/Mac/$DRIVER" ]; then
echo $INET > "/Mac/$DRIVER/ip"
echo "Written /Mac/$DRIVER/ip = $INET"
else
echo "No /Mac/$DRIVER: not writing IP address to host"
echo "mount"
mount
echo "ls /Mac"
ls /Mac
echo "ls /Mac/$(dirname $DRIVER)"
ls /Mac/$(dirname $DRIVER)
fi
else
echo "No com.docker.driverDir: not writing IP address to host"
fi
if cat /proc/cmdline | grep -q 'com.docker.database'
then
DATABASE="$(cat /proc/cmdline | sed -e 's/.*com.docker.database="//' -e 's/".*//')"