github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/contrib/init/systemd/docker.service (about) 1 [Unit] 2 Description=Docker Application Container Engine 3 Documentation=https://docs.docker.com 4 After=network-online.target docker.socket firewalld.service 5 Wants=network-online.target 6 Requires=docker.socket 7 8 [Service] 9 Type=notify 10 # the default is not to use systemd for cgroups because the delegate issues still 11 # exists and systemd currently does not support the cgroup feature set required 12 # for containers run by docker 13 ExecStart=/usr/bin/dockerd -H fd:// 14 ExecReload=/bin/kill -s HUP $MAINPID 15 LimitNOFILE=1048576 16 # Having non-zero Limit*s causes performance problems due to accounting overhead 17 # in the kernel. We recommend using cgroups to do container-local accounting. 18 LimitNPROC=infinity 19 LimitCORE=infinity 20 # Uncomment TasksMax if your systemd version supports it. 21 # Only systemd 226 and above support this version. 22 #TasksMax=infinity 23 TimeoutStartSec=0 24 # set delegate yes so that systemd does not reset the cgroups of docker containers 25 Delegate=yes 26 # kill only the docker process, not all processes in the cgroup 27 KillMode=process 28 # restart the docker process if it exits prematurely 29 Restart=on-failure 30 StartLimitBurst=3 31 StartLimitInterval=60s 32 33 [Install] 34 WantedBy=multi-user.target