| 1 | # derived containerd systemd service file from the official: |
| 2 | # https://github.com/containerd/containerd/blob/master/containerd.service |
| 3 | [Unit] |
| 4 | Description=containerd container runtime |
| 5 | Documentation=https://containerd.io |
| 6 | After=network.target local-fs.target |
| 7 | # disable rate limiting |
| 8 | StartLimitIntervalSec=0 |
| 9 | |
| 10 | [Service] |
| 11 | ExecStartPre=-/sbin/modprobe overlay |
| 12 | ExecStart=/usr/local/bin/containerd |
| 13 | |
| 14 | Type=notify |
| 15 | Delegate=yes |
| 16 | KillMode=process |
| 17 | Restart=always |
| 18 | RestartSec=1 |
| 19 | # Having non-zero Limit*s causes performance problems due to accounting overhead |
| 20 | # in the kernel. We recommend using cgroups to do container-local accounting. |
| 21 | LimitNPROC=infinity |
| 22 | LimitCORE=infinity |
| 23 | LimitNOFILE=infinity |
| 24 | TasksMax=infinity |
| 25 | OOMScoreAdjust=-999 |
| 26 | |
| 27 | [Install] |
| 28 | WantedBy=multi-user.target |