Update configure-helper.sh

add live-restore true by default.
This commit is contained in:
vteratipally 2021-08-04 12:09:10 -07:00 committed by GitHub
parent 9ff3b7e744
commit 0376c58c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1506,12 +1506,6 @@ function set_docker_options_non_ubuntu() {
addockeropt "\"mtu\": 1460,"
addockeropt "\"storage-driver\": \"overlay2\","
echo "setting live restore"
# Disable live-restore if the environment variable is set.
if [[ "${DISABLE_DOCKER_LIVE_RESTORE:-false}" == "true" ]]; then
addockeropt "\"live-restore\": \"false\","
fi
}
function assemble-docker-flags {
@ -1558,6 +1552,14 @@ addockeropt "\"pidfile\": \"/var/run/docker.pid\",
disable_aufs
set_docker_options_non_ubuntu
echo "setting live restore"
# Disable live-restore if the environment variable is set.
if [[ "${DISABLE_DOCKER_LIVE_RESTORE:-false}" == "true" ]]; then
addockeropt "\"live-restore\": \"false\","
else
addockeropt "\"live-restore\": \"true\","
fi
echo "setting docker logging options"
# Configure docker logging
addockeropt "\"log-driver\": \"${DOCKER_LOG_DRIVER:-json-file}\","