xoxys.docker_engine/templates/etc/sysconfig/docker.j2

15 lines
526 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
OPTIONS='{{'--userns-remap=' + dockerengine_nsremap_user + ':' + dockerengine_nsremap_user if dockerengine_usernamespace_enabled | bool else '' }}'
# Proxy settings
{% if dockerengine_http_proxy is defined %}
HTTP_PROXY={{ dockerengine_http_proxy }}
{% endif %}
{% if dockerengine_https_proxy is defined %}
HTTPS_PROXY={{ dockerengine_https_proxy }}
{% endif %}
{% if dockerengine_no_proxy is defined %}
NO_PROXY={{ dockerengine_no_proxy|join(',') }}"
{% endif %}