From ced31ea97b21737358c644801e6383c7f1c6744e Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 15 Oct 2020 14:28:01 +0200 Subject: [PATCH] Do not enable tls if not in swarm mode. --- templates/daemon.json.j2 | 2 ++ 1 file changed, 2 insertions(+) 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,