mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
docker: start docker daemon with network on Hyper-V for now
On Windows, for now we use DOCKER_HOST and access the docker daemon on Moby via the network. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
02096b9e66
commit
d89031ec6f
@ -11,8 +11,13 @@ then
|
|||||||
DATABASE="$(cat /proc/cmdline | sed -e 's/.*com.docker.database="//' -e 's/".*//')"
|
DATABASE="$(cat /proc/cmdline | sed -e 's/.*com.docker.database="//' -e 's/".*//')"
|
||||||
CONFIG_FILE="/Database/branch/master/ro/${DATABASE}/etc/docker/daemon.json"
|
CONFIG_FILE="/Database/branch/master/ro/${DATABASE}/etc/docker/daemon.json"
|
||||||
[ -s ${CONFIG_FILE} ] && DOCKER_OPTS="${DOCKER_OPTS} --config-file ${CONFIG_FILE}"
|
[ -s ${CONFIG_FILE} ] && DOCKER_OPTS="${DOCKER_OPTS} --config-file ${CONFIG_FILE}"
|
||||||
|
else
|
||||||
|
# If there is no database and we run on Hyper-V start daemon
|
||||||
|
# with networking for now. This will change in the future!
|
||||||
|
[ -d /sys/bus/vmbus ] && DOCKER_OPTS="${DOCKER_OPTS} -H tcp://0.0.0.0:2375"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
command_args="daemon -p \"${pidfile}\" ${DOCKER_OPTS}"
|
command_args="daemon -p \"${pidfile}\" ${DOCKER_OPTS}"
|
||||||
|
|
||||||
DOCKER_LOGFILE="/var/log/docker.log}"
|
DOCKER_LOGFILE="/var/log/docker.log}"
|
||||||
|
Loading…
Reference in New Issue
Block a user