Merge pull request #451 from justincormack/debughandling

Run dockerd in debug mode if not overridden in config file
This commit is contained in:
Justin Cormack 2016-08-31 13:56:34 +01:00 committed by GitHub
commit d8feda4bb7

View File

@ -65,6 +65,9 @@ start()
export no_proxy="$(mobyconfig get proxy/exclude)"
fi
# Set Docker to debug debug if not specified in daemon.json
([ -f /etc/docker/daemon.json ] && cat /etc/docker/daemon.json | jq -e .debug > /dev/null) || DOCKER_OPTS="${DOCKER_OPTS} --debug"
# shift logs onto host before docker starts
# busybox reopens its log files every second
if cat /proc/cmdline | grep -q 'com.docker.driver'