Merge pull request #564 from justincormack/debug-jq

fix checking for debug key exists
This commit is contained in:
Justin Cormack 2016-09-26 22:51:41 +01:00 committed by GitHub
commit aaf4517c83

View File

@ -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