2016-11-04 21:40:14 +00:00
|
|
|
[Service]
|
2019-07-21 07:12:53 +00:00
|
|
|
Environment="DOCKER_OPTS={{ docker_options|default('') }} --iptables={{ docker_iptables_enabled | default('false') }} \
|
|
|
|
{% for i in docker_insecure_registries %}--insecure-registry={{ i }} {% endfor %} \
|
|
|
|
{% for i in docker_registry_mirrors %}--registry-mirror={{ i }} {% endfor %} \
|
|
|
|
{% if docker_version != "latest" and docker_version is version('17.05', '<') %}--graph={% else %}--data-root={% endif %}{{ docker_daemon_graph }} \
|
|
|
|
{% if ansible_os_family not in ["openSUSE Leap", "openSUSE Tumbleweed", "Suse"] %}{{ docker_log_opts }}{% endif %} \
|
|
|
|
{% if ansible_architecture == "aarch64" and ansible_os_family == "RedHat" %} \
|
|
|
|
--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current \
|
|
|
|
--default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd \
|
|
|
|
--userland-proxy-path=/usr/libexec/docker/docker-proxy-current --signature-verification=false \
|
|
|
|
{% endif %}"
|
|
|
|
|
2018-04-15 13:20:02 +00:00
|
|
|
{% if docker_mount_flags is defined and docker_mount_flags != "" %}
|
|
|
|
MountFlags={{ docker_mount_flags }}
|
|
|
|
{% endif %}
|