mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
Default to experimental if not specified in daemon.json
Most editions were shipping with experimental; now it is a daemon flag this seems the best behaviour. Only do this on recent dockerd as we are still supporting 1.12 for a while longer. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
cb9a34cbee
commit
2e4ee1a73f
@ -84,6 +84,12 @@ start()
|
||||
# Set Docker to debug debug if not specified in daemon.json
|
||||
cat /etc/docker/daemon.json | jq -e 'has("debug")' > /dev/null || DOCKER_OPTS="${DOCKER_OPTS} --debug"
|
||||
|
||||
# Set experimental=true if not specified in daemon.json if dockerd supports it
|
||||
if dockerd --help | grep -q experimental
|
||||
then
|
||||
cat /etc/docker/daemon.json | jq -e 'has("experimental")' > /dev/null || DOCKER_OPTS="${DOCKER_OPTS} --experimental"
|
||||
fi
|
||||
|
||||
# choose storage driver
|
||||
if ! $(cat /etc/docker/daemon.json | jq -e '."storage-driver"' > /dev/null)
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user