From d973ecf5cc851be908b791fd893025eaa30e1e3c Mon Sep 17 00:00:00 2001 From: dshuvar Date: Mon, 28 May 2018 18:23:15 +0300 Subject: [PATCH 1/2] fix error message: '[/etc/systemd/system/docker.service.d/docker-options.conf:3] Failed to parse mount flag , ignoring.' --- roles/docker/templates/docker-options.conf.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/docker/templates/docker-options.conf.j2 b/roles/docker/templates/docker-options.conf.j2 index e343a994e..576fc1abd 100644 --- a/roles/docker/templates/docker-options.conf.j2 +++ b/roles/docker/templates/docker-options.conf.j2 @@ -1,6 +1,5 @@ [Service] -Environment="DOCKER_OPTS={{ docker_options | default('') }} \ ---iptables=false" +Environment="DOCKER_OPTS={{ docker_options | default('') }} --iptables=false" {% if docker_mount_flags is defined and docker_mount_flags != "" %} MountFlags={{ docker_mount_flags }} {% endif %} From 16f860bbc2f40964eb3dd232982f04e544fcda26 Mon Sep 17 00:00:00 2001 From: Dmitrii Shuvar Date: Tue, 29 May 2018 12:40:33 +0300 Subject: [PATCH 2/2] Update docker-options.conf.j2 Changed /etc/systemd/system/docker.service.d/docker-options.conf file for successful parsing mount aguments try fix ci error previous commit --- roles/docker/templates/docker-options.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/docker/templates/docker-options.conf.j2 b/roles/docker/templates/docker-options.conf.j2 index 576fc1abd..f1587ec4d 100644 --- a/roles/docker/templates/docker-options.conf.j2 +++ b/roles/docker/templates/docker-options.conf.j2 @@ -1,5 +1,5 @@ [Service] -Environment="DOCKER_OPTS={{ docker_options | default('') }} --iptables=false" +Environment="DOCKER_OPTS={{ docker_options|default('') }} --iptables=false" {% if docker_mount_flags is defined and docker_mount_flags != "" %} MountFlags={{ docker_mount_flags }} {% endif %}