mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Update configure-helper.sh
This commit is contained in:
parent
0376c58c44
commit
b0039559dd
@ -1506,6 +1506,13 @@ 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\","
|
||||
else
|
||||
addockeropt "\"live-restore\": \"true\","
|
||||
fi
|
||||
}
|
||||
|
||||
function assemble-docker-flags {
|
||||
@ -1552,13 +1559,6 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user