Debian Codegraph @

engine/contrib/init/systemd/docker.service

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 [Unit]
2 Description=Docker Application Container Engine
3 Documentation=https://docs.docker.com
4 After=network-online.target nss-lookup.target docker.socket firewalld.service containerd.service time-set.target
5 Wants=network-online.target containerd.service
6 Requires=docker.socket
7 StartLimitBurst=3
8 StartLimitIntervalSec=60
9
10 [Service]
11 Type=notify
12 # the default is not to use systemd for cgroups because the delegate issues still
13 # exists and systemd currently does not support the cgroup feature set required
14 # for containers run by docker
15 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
16 ExecReload=/bin/kill -s HUP $MAINPID
17 TimeoutStartSec=0
18 RestartSec=2
19 Restart=always
20
21 # Having non-zero Limit*s causes performance problems due to accounting overhead
22 # in the kernel. We recommend using cgroups to do container-local accounting.
23 LimitNPROC=infinity
24 LimitCORE=infinity
25
26 # Comment TasksMax if your systemd version does not support it.
27 # Only systemd 226 and above support this option.
28 TasksMax=infinity
29
30 # set delegate yes so that systemd does not reset the cgroups of docker containers
31 Delegate=yes
32
33 # kill only the docker process, not all processes in the cgroup
34 KillMode=process
35 OOMScoreAdjust=-500
36
37 [Install]
38 WantedBy=multi-user.target