mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
init: don't start docker on 0.0.0.0:2375 on DfM/DfW
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
b499b52d48
commit
c09905199a
@ -13,9 +13,13 @@ start()
|
|||||||
|
|
||||||
pidfile="/run/docker.pid"
|
pidfile="/run/docker.pid"
|
||||||
|
|
||||||
# Start with networking on both Mac and Hyper-V, but in
|
# Only start with networking on cloud editions
|
||||||
# future change this to use a hypervisor socket.
|
DOCKER_OPTS="${DOCKER_OPTS} -H unix:///var/run/docker.sock"
|
||||||
DOCKER_OPTS="${DOCKER_OPTS} -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"
|
if [ ! -z $(bootflag cloud_provider) ]
|
||||||
|
then
|
||||||
|
# TODO: More elegant way to turn on "debug mode"
|
||||||
|
DOCKER_OPTS="${DOCKER_OPTS} -H 0.0.0.0:2375"
|
||||||
|
fi
|
||||||
|
|
||||||
# some config is always in /etc/docker cannot specify alternative eg certs
|
# some config is always in /etc/docker cannot specify alternative eg certs
|
||||||
if mobyconfig exists etc/docker
|
if mobyconfig exists etc/docker
|
||||||
|
Loading…
Reference in New Issue
Block a user