From e760a5dbdc5837c0a299b29b6f9c3a3a5a0c323e Mon Sep 17 00:00:00 2001 From: Olivier Navas Date: Sat, 16 Dec 2023 11:12:54 +0100 Subject: [PATCH] Rotation des logs locale --- templates/daemon.json.j2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/daemon.json.j2 b/templates/daemon.json.j2 index 0ae0e65..9aaccda 100644 --- a/templates/daemon.json.j2 +++ b/templates/daemon.json.j2 @@ -2,7 +2,13 @@ "data-root": "{{ docker_host_data_dir }}", "default-address-pools": [ { "base": "172.18.0.0/16", "size": 24 } - ]{% if docker_host_user_namespaces is true %}, + ], + "log-driver": "local", + "log-opts": { + "max-size": "20m", + "max-file": "10", + "compress": "true" + }{% if docker_host_user_namespaces is true %}, "userns-remap": "default" {% endif %}