ansible-role-docker/templates/docker-systemd-override.con...

8 lines
381 B
Django/Jinja

[Service]
ExecStart=
{% if docker_swarm %}
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:{{ docker_api_port }} -H fd:// --containerd=/run/containerd/containerd.sock
{% else %}
ExecStart=/usr/bin/dockerd {% if docker_enable_tcp_socket %} -H tcp://{{ docker_tcp_socket_host }}:{{ docker_tcp_socket_port }} {% endif %} -H fd:// --containerd=/run/containerd/containerd.sock
{% endif %}