mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 19:28:09 +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
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user