mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 04:28:20 +00:00
Merge pull request #564 from justincormack/debug-jq
fix checking for debug key exists
This commit is contained in:
commit
aaf4517c83
@ -79,7 +79,7 @@ start()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set Docker to debug debug if not specified in daemon.json
|
# 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
|
# shift logs onto host before docker starts
|
||||||
# busybox reopens its log files every second
|
# busybox reopens its log files every second
|
||||||
|
Loading…
Reference in New Issue
Block a user