mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 20:48:11 +00:00
Run dockerd in debug mode if not overridden in config file
Fix #448 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
847edf1ff6
commit
b0f3012993
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user