Initial commit
This commit is contained in:
22
templates/daemon-json.j2
Normal file
22
templates/daemon-json.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
{% if tcp_listen %} "hosts": ["tcp://{{ tcp_listen_addr | default('0.0.0.0') }}:{{ tcp_listen_port | default('2375') }}", "unix:///var/run/docker.sock"],
|
||||
{% endif %}
|
||||
{% if metrics_enable %} "metrics-addr" : "{{ metrics_addr | default('0.0.0.0') }}:{{ metrics_port | default('19323') }}",
|
||||
{% endif %}
|
||||
{% if experimental_enable %} "experimental" : true,
|
||||
{% endif %}
|
||||
{% if remap_enable %} "userns-remap" : "{{ remap_user | default('dockremap') }}",
|
||||
{% endif %}
|
||||
{% if insecure_registries is defined %} "insecure-registries" : [{% for registry in insecure_registries %}"{{ registry }}"{% if not loop.last %}, {% endif %}{% endfor %}],
|
||||
{% endif %}
|
||||
{% if registry_mirrors is defined %} "registry-mirrors": [{% for registry in registry_mirrors %}"{{ registry }}"{% if not loop.last %}, {% endif %}{% endfor %}],
|
||||
{% endif %}
|
||||
"log-opts": {
|
||||
"compress": "{{ log.compress | default('false') }}",
|
||||
"max-size": "{{ log.max_size | default('50m') }}",
|
||||
"max-file": "{{ log.max_file | default('10') }}"
|
||||
},
|
||||
{% if live_restore and not swarm_init %} "live-restore": true,
|
||||
{% endif %}
|
||||
"ipv6": {{ 'true' if ipv6_enable else 'false' }}
|
||||
}
|
||||
Reference in New Issue
Block a user