summaryrefslogtreecommitdiff
path: root/magnum/drivers/common/templates/swarm/fragments/add-docker-daemon-options.sh
diff options
context:
space:
mode:
Diffstat (limited to 'magnum/drivers/common/templates/swarm/fragments/add-docker-daemon-options.sh')
-rw-r--r--magnum/drivers/common/templates/swarm/fragments/add-docker-daemon-options.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/magnum/drivers/common/templates/swarm/fragments/add-docker-daemon-options.sh b/magnum/drivers/common/templates/swarm/fragments/add-docker-daemon-options.sh
index b08eb31..b5f7393 100644
--- a/magnum/drivers/common/templates/swarm/fragments/add-docker-daemon-options.sh
+++ b/magnum/drivers/common/templates/swarm/fragments/add-docker-daemon-options.sh
@@ -11,3 +11,8 @@ if [ "$TLS_DISABLED" = 'False' ]; then
11fi 11fi
12 12
13sed -i '/^OPTIONS=/ s#\(OPTIONS='"'"'\)#\1'"$opts"'#' /etc/sysconfig/docker 13sed -i '/^OPTIONS=/ s#\(OPTIONS='"'"'\)#\1'"$opts"'#' /etc/sysconfig/docker
14
15# NOTE(tobias-urdin): The live restore option is only for standalone daemons.
16# If its specified the swarm init will fail so we remove it here.
17# See: https://docs.docker.com/config/containers/live-restore
18sed -i 's/\ --live-restore//g' /etc/sysconfig/docker