From 16200bf4119eff61dcd180291911dd60156046a1 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Fri, 11 Dec 2020 17:24:57 +0100 Subject: [PATCH] Add template for daemon.json --- roles/docker/templates/daemon.json.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 roles/docker/templates/daemon.json.j2 diff --git a/roles/docker/templates/daemon.json.j2 b/roles/docker/templates/daemon.json.j2 new file mode 100644 index 0000000..ee43392 --- /dev/null +++ b/roles/docker/templates/daemon.json.j2 @@ -0,0 +1,9 @@ +{ + "exec-opts": ["native.cgroupdriver=systemd"], + "log-driver": "json-file", + "log-opts": { + "max-size": "100m" + }, + "data-root": "{{ docker_data_root }}", + "storage-driver": "{{ docker_storage_driver }}" +}