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.

40 lines
1.1 KiB

  1. [Unit]
  2. Description=Docker Application Container Engine
  3. Documentation=http://docs.docker.com
  4. {% if ansible_os_family == "RedHat" %}
  5. After=network.target docker-storage-setup.service
  6. Wants=docker-storage-setup.service
  7. {% elif ansible_os_family == "Debian" %}
  8. After=network.target docker.socket
  9. Wants=docker.socket
  10. {% endif %}
  11. [Service]
  12. Type=notify
  13. {% if ansible_os_family == "RedHat" %}
  14. EnvironmentFile=-/etc/default/docker
  15. EnvironmentFile=-/etc/sysconfig/docker
  16. EnvironmentFile=-/etc/sysconfig/docker-network
  17. EnvironmentFile=-/etc/sysconfig/docker-storage
  18. {% elif ansible_os_family == "Debian" %}
  19. EnvironmentFile=-/etc/default/docker
  20. {% endif %}
  21. Environment=GOTRACEBACK=crash
  22. ExecReload=/bin/kill -s HUP $MAINPID
  23. Delegate=yes
  24. KillMode=process
  25. ExecStart=/usr/bin/docker daemon \
  26. $OPTIONS \
  27. $DOCKER_STORAGE_OPTIONS \
  28. $DOCKER_NETWORK_OPTIONS \
  29. $INSECURE_REGISTRY \
  30. $DOCKER_OPTS
  31. TasksMax=infinity
  32. LimitNOFILE=1048576
  33. LimitNPROC=1048576
  34. LimitCORE=infinity
  35. TimeoutStartSec=1min
  36. Restart=on-abnormal
  37. [Install]
  38. WantedBy=multi-user.target