set debug mode on docker daemon

See https://github.com/docker/pinata/issues/827

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-02-24 14:24:58 +00:00
parent 4462a4b88d
commit 52cce5311a

View File

@ -10,6 +10,9 @@ 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"
# set debug mode
DOCKER_OPTS="${DOCKER_OPTS} --debug"
if cat /proc/cmdline | grep -q 'com.docker.driverDir'
then
DRIVER="$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')"