From ce6ae3a70bd229cce58a721b1a681e6ada034c44 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Mon, 26 Sep 2016 22:23:10 +0100 Subject: [PATCH] fix checking for debug key exists Signed-off-by: Justin Cormack --- alpine/packages/docker/etc/init.d/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpine/packages/docker/etc/init.d/docker b/alpine/packages/docker/etc/init.d/docker index 3027086f0..c57297d4a 100755 --- a/alpine/packages/docker/etc/init.d/docker +++ b/alpine/packages/docker/etc/init.d/docker @@ -79,7 +79,7 @@ start() 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" + ([ -f /etc/docker/daemon.json ] && cat /etc/docker/daemon.json | jq -e 'has("debug")' > /dev/null) || DOCKER_OPTS="${DOCKER_OPTS} --debug" # shift logs onto host before docker starts # busybox reopens its log files every second