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 %}