You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
1002 B

  1. [Service]
  2. Environment="DOCKER_OPTS={{ docker_options|default('') }} --iptables={{ docker_iptables_enabled | default('false') }} \
  3. {% for i in docker_insecure_registries %}--insecure-registry={{ i }} {% endfor %} \
  4. {% for i in docker_registry_mirrors %}--registry-mirror={{ i }} {% endfor %} \
  5. {% if docker_version != "latest" and docker_version is version('17.05', '<') %}--graph={% else %}--data-root={% endif %}{{ docker_daemon_graph }} \
  6. {% if ansible_os_family not in ["openSUSE Leap", "openSUSE Tumbleweed", "Suse"] %}{{ docker_log_opts }}{% endif %} \
  7. {% if ansible_architecture == "aarch64" and ansible_os_family == "RedHat" %} \
  8. --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current \
  9. --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd \
  10. --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --signature-verification=false \
  11. {% endif %}"
  12. {% if docker_mount_flags is defined and docker_mount_flags != "" %}
  13. MountFlags={{ docker_mount_flags }}
  14. {% endif %}