docker.service 663 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=Docker Application Container Engine
  3. Documentation=https://docs.docker.com
  4. After=network.target docker.socket
  5. Requires=docker.socket
  6. [Service]
  7. Type=notify
  8. # the default is not to use systemd for cgroups because the delegate issues still
  9. # exists and systemd currently does not support the cgroup feature set required
  10. # for containers run by docker
  11. ExecStart=/usr/bin/docker daemon -H fd:// -s overlay -g /data/docker
  12. MountFlags=slave
  13. LimitNOFILE=1048576
  14. LimitNPROC=1048576
  15. LimitCORE=infinity
  16. TimeoutStartSec=0
  17. # set delegate yes so that systemd does not reset the cgroups of docker containers
  18. Delegate=yes
  19. [Install]
  20. WantedBy=multi-user.target