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.

31 lines
760 B

  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. Environment=GOTRACEBACK=crash
  14. ExecReload=/bin/kill -s HUP $MAINPID
  15. Delegate=yes
  16. KillMode=process
  17. ExecStart=/usr/bin/docker daemon \
  18. $DOCKER_OPTS \
  19. $DOCKER_STORAGE_OPTIONS \
  20. $DOCKER_NETWORK_OPTIONS \
  21. $INSECURE_REGISTRY
  22. TasksMax=infinity
  23. LimitNOFILE=1048576
  24. LimitNPROC=1048576
  25. LimitCORE=infinity
  26. TimeoutStartSec=1min
  27. Restart=on-abnormal
  28. [Install]
  29. WantedBy=multi-user.target