github.com/coreos/docker@v1.13.1/contrib/init/systemd/docker.service.rpm (about) 1 [Unit] 2 Description=Docker Application Container Engine 3 Documentation=https://docs.docker.com 4 After=network.target firewalld.service 5 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/dockerd 12 ExecReload=/bin/kill -s HUP $MAINPID 13 # Having non-zero Limit*s causes performance problems due to accounting overhead 14 # in the kernel. We recommend using cgroups to do container-local accounting. 15 LimitNOFILE=infinity 16 LimitNPROC=infinity 17 LimitCORE=infinity 18 # Uncomment TasksMax if your systemd version supports it. 19 # Only systemd 226 and above support this version. 20 #TasksMax=infinity 21 TimeoutStartSec=0 22 # set delegate yes so that systemd does not reset the cgroups of docker containers 23 Delegate=yes 24 # kill only the docker process, not all processes in the cgroup 25 KillMode=process 26 27 [Install] 28 WantedBy=multi-user.target