mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +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/".*//')"
|
||||
CONFIG_FILE="/Database/branch/master/ro/${DATABASE}/etc/docker/daemon.json"
|
||||
[ -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
|
||||
|
||||
|
||||
command_args="daemon -p \"${pidfile}\" ${DOCKER_OPTS}"
|
||||
|
||||
DOCKER_LOGFILE="/var/log/docker.log}"
|
||||
|
Loading…
Reference in New Issue
Block a user