diff --git a/templates/daemon.json.j2 b/templates/daemon.json.j2 index bfea5e9..3aea048 100644 --- a/templates/daemon.json.j2 +++ b/templates/daemon.json.j2 @@ -2,6 +2,7 @@ {% if docker_log_to_journal %} "log-driver": "journald", {% endif %} +{% if docker_swarm %} {% if docker_tls_api %} "tls": true, "tlscacert": "{{ docker_tls_ca }}", @@ -13,6 +14,7 @@ "tlsverify": false, {% endif %} {% endif %} +{% endif %} {% if docker_prometheus_metrics %} "metrics-addr" : "{{ docker_prometheus_host }}:9323", "experimental" : true,