mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-20 12:40:12 -03:30
configure docker_options directly with template (#4912)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
1cbdd7ed5c
commit
9cf503acb1
@@ -1,5 +1,15 @@
|
||||
[Service]
|
||||
Environment="DOCKER_OPTS={{ docker_options|default('') }} --iptables={{ docker_iptables_enabled | default('false') }}"
|
||||
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 %}"
|
||||
|
||||
{% if docker_mount_flags is defined and docker_mount_flags != "" %}
|
||||
MountFlags={{ docker_mount_flags }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user