mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Update configure-helper.sh
add live-restore true by default.
This commit is contained in:
parent
9ff3b7e744
commit
0376c58c44
@ -1506,12 +1506,6 @@ function set_docker_options_non_ubuntu() {
|
|||||||
|
|
||||||
addockeropt "\"mtu\": 1460,"
|
addockeropt "\"mtu\": 1460,"
|
||||||
addockeropt "\"storage-driver\": \"overlay2\","
|
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 {
|
function assemble-docker-flags {
|
||||||
@ -1558,6 +1552,14 @@ addockeropt "\"pidfile\": \"/var/run/docker.pid\",
|
|||||||
disable_aufs
|
disable_aufs
|
||||||
set_docker_options_non_ubuntu
|
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"
|
echo "setting docker logging options"
|
||||||
# Configure docker logging
|
# Configure docker logging
|
||||||
addockeropt "\"log-driver\": \"${DOCKER_LOG_DRIVER:-json-file}\","
|
addockeropt "\"log-driver\": \"${DOCKER_LOG_DRIVER:-json-file}\","
|
||||||
|
Loading…
Reference in New Issue
Block a user