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.

34 lines
904 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
  6. Wants=docker-storage-setup.service
  7. {% elif ansible_os_family == "Debian" %}
  8. After=network.target docker.socket
  9. Requires=docker.socket
  10. {% endif %}
  11. [Service]
  12. Type=notify
  13. {% if ansible_os_family == "RedHat" %}
  14. EnvironmentFile=-/etc/sysconfig/docker
  15. EnvironmentFile=-/etc/sysconfig/docker-network
  16. EnvironmentFile=-/etc/sysconfig/docker-storage
  17. {% elif ansible_os_family == "Debian" %}
  18. EnvironmentFile=-/etc/default/docker
  19. {% endif %}
  20. Environment=GOTRACEBACK=crash
  21. ExecStart=/usr/bin/docker daemon \
  22. $OPTIONS \
  23. $DOCKER_STORAGE_OPTIONS \
  24. $DOCKER_NETWORK_OPTIONS \
  25. $INSECURE_REGISTRY
  26. LimitNOFILE=1048576
  27. LimitNPROC=1048576
  28. LimitCORE=infinity
  29. MountFlags=slave
  30. TimeoutStartSec=1min
  31. [Install]
  32. WantedBy=multi-user.target