15 lines
497 B
Django/Jinja
15 lines
497 B
Django/Jinja
[Service]
|
|
{% if docker.http_proxy is defined %}
|
|
Environment="HTTP_PROXY={{ docker.http_proxy }}"
|
|
Environment="HTTPS_PROXY={{ docker.http_proxy }}"
|
|
Environment="NO_PROXY={{ docker.no_proxy}}"
|
|
{% endif %}
|
|
|
|
ExecStart=
|
|
ExecStart=/usr/bin/dockerd \
|
|
{% if docker.log_max_size is defined %}
|
|
--log-opt max-size={{ docker.log_max_size }} --log-opt max-file={{ docker.log_max_file }} \
|
|
{% endif %}
|
|
{% if docker.registry_mirror is defined %}
|
|
--registry-mirror={{ docker.registry_mirror }}
|
|
{% endif %} |