2016-11-05 05:40:14 +08:00
|
|
|
[Service]
|
2019-07-21 15:12:53 +08:00
|
|
|
Environment="DOCKER_OPTS={{ docker_options|default('') }} --iptables={{ docker_iptables_enabled | default('false') }} \
|
2020-08-31 19:56:20 +08:00
|
|
|
--exec-opt native.cgroupdriver={{ docker_cgroup_driver }} \
|
2019-07-21 15:12:53 +08:00
|
|
|
{% for i in docker_insecure_registries %}--insecure-registry={{ i }} {% endfor %} \
|
|
|
|
{% for i in docker_registry_mirrors %}--registry-mirror={{ i }} {% endfor %} \
|
2021-01-08 06:02:47 +08:00
|
|
|
--data-root={{ docker_daemon_graph }} \
|
2022-07-05 23:26:47 +08:00
|
|
|
{% if ansible_os_family not in ["openSUSE Leap", "openSUSE Tumbleweed", "Suse"] %}{{ docker_log_opts }}{% endif %}"
|
2019-07-21 15:12:53 +08:00
|
|
|
|
2018-04-15 21:20:02 +08:00
|
|
|
{% if docker_mount_flags is defined and docker_mount_flags != "" %}
|
|
|
|
MountFlags={{ docker_mount_flags }}
|
|
|
|
{% endif %}
|