Skip to content

Commit

Permalink
Update configure-helper.sh
Browse files Browse the repository at this point in the history
add live-restore true by default.
  • Loading branch information
vteratipally authored and SergeyKanzhelev committed Aug 5, 2021
1 parent 8f9e096 commit 961a35e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cluster/gce/gci/configure-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1498,12 +1498,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 {
Expand Down Expand Up @@ -1550,6 +1544,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}\","
Expand Down

0 comments on commit 961a35e

Please sign in to comment.