mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
docker: write ip in groupDir
, not driverDir
Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
parent
1d2e9cacb0
commit
5da9891c8b
@ -10,9 +10,9 @@ pidfile="/run/docker.pid"
|
|||||||
# future change this to use a hypervisor socket.
|
# 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"
|
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'
|
if cat /proc/cmdline | grep -q 'com.docker.groupDir'
|
||||||
then
|
then
|
||||||
DRIVER="$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')"
|
DRIVER="$(cat /proc/cmdline | sed -e 's/.*com.docker.groupDir="//' -e 's/".*//')"
|
||||||
INET=$(ifconfig eth0 2> /dev/null | grep 'inet addr' | cut -f 2 -d ":" | cut -f 1 -d " ")
|
INET=$(ifconfig eth0 2> /dev/null | grep 'inet addr' | cut -f 2 -d ":" | cut -f 1 -d " ")
|
||||||
echo $INET > "/Mac/$DRIVER/ip"
|
echo $INET > "/Mac/$DRIVER/ip"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user