mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
commit
54eb0f2ec5
1
changelog/changes/2023-06-15-containerd-service
Normal file
1
changelog/changes/2023-06-15-containerd-service
Normal file
@ -0,0 +1 @@
|
|||||||
|
- Migrate to Type=notify in containerd.service. Changed the unit to Type=notify, utilizing the existing containerd support for sd_notify call after socket setup.
|
@ -1,20 +1,24 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Containerd Container Daemon
|
Description=containerd container runtime
|
||||||
Documentation=http://github.com/docker/containerd
|
Documentation=https://containerd.io
|
||||||
|
After=network.target local-fs.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
ExecStartPre=-/sbin/modprobe overlay
|
||||||
ExecStart=/usr/bin/containerd --listen unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim /usr/bin/containerd-shim --state-dir /var/run/docker/libcontainerd/containerd --start-timeout 2m
|
ExecStart=/usr/bin/containerd --listen unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim /usr/bin/containerd-shim --state-dir /var/run/docker/libcontainerd/containerd --start-timeout 2m
|
||||||
Restart=always
|
|
||||||
|
|
||||||
# (lack of) limits from the upstream docker service unit
|
Type=notify
|
||||||
LimitNOFILE=1048576
|
Delegate=yes
|
||||||
|
KillMode=process
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
||||||
|
# in the kernel. We recommend using cgroups to do container-local accounting.
|
||||||
LimitNPROC=infinity
|
LimitNPROC=infinity
|
||||||
LimitCORE=infinity
|
LimitCORE=infinity
|
||||||
|
LimitNOFILE=infinity
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
|
OOMScoreAdjust=-999
|
||||||
# set delegate yes so that systemd does not reset the cgroups of containers
|
|
||||||
Delegate=yes
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target early-docker.target
|
WantedBy=multi-user.target early-docker.target
|
||||||
|
Loading…
Reference in New Issue
Block a user