fix: quote max-file as string in daemon.json

Docker's daemon.json parser expects max-file as a string, not an
integer. The unquoted Jinja template rendered "max-file": 3 which
caused dockerd to fail with "cannot unmarshal number into Go struct
field LogConfig.log-opts of type string".

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Emil Simeonov
2026-08-10 09:37:36 +02:00
co-authored by Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent 3f22910a7d
commit 8047ea6061
@@ -183,7 +183,7 @@
"userland-proxy": {{ gitea_runner_docker_userland_proxy | to_json }},
"log-opts": {
"max-size": "{{ gitea_runner_docker_max_log_size }}",
"max-file": {{ gitea_runner_docker_max_log_files }}
"max-file": "{{ gitea_runner_docker_max_log_files }}"
},
{% if gitea_runner_docker_rootless_net_driver == 'pasta' %}
"ipv6": true,
@@ -291,7 +291,7 @@
"userland-proxy": {{ gitea_runner_docker_userland_proxy | to_json }},
"log-opts": {
"max-size": "{{ gitea_runner_docker_max_log_size }}",
"max-file": {{ gitea_runner_docker_max_log_files }}
"max-file": "{{ gitea_runner_docker_max_log_files }}"
},
{% if gitea_runner_docker_rootless_net_driver == 'pasta' %}
"ipv6": true,