ansible-roles/docker-host/templates/daemon.json.j2
Ludovic Poujol 6aa7b89b78
All checks were successful
continuous-integration/drone/push Build is passing
docker : Introduce new default settings + allow to change the docker data directory
2022-05-10 18:21:59 +02:00

26 lines
683 B
Django/Jinja

{
"debug": false,
{# Docker data-dir (default to /var/lib/docker) #}
"data-root": "{{ docker_home }}",
{# Keep containers running while docker daemon downtime #}
"live-restore": true,
{# Turn on user namespace remaping #}
"userns-remap": "default",
{% if docker_tls_enabled %}
"tls": true,
"tlscert": "{{ docker_tls_path }}/{{ docker_tls_cert }}",
"tlscacert": "{{ docker_tls_path }}/{{ docker_tls_ca }}",
"tlskey": "{{ docker_tls_path }}/{{ docker_tls_key }}",
{% endif %}
{% if docker_remote_access_enabled %}
"hosts": ["tcp://{{ docker_daemon_listening_ip }}:{{ docker_daemon_port }}", "fd://"]
{% else %}
"hosts": ["fd://"]
{% endif %}
}