mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 21:46: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]
|
||||
Description=Containerd Container Daemon
|
||||
Documentation=http://github.com/docker/containerd
|
||||
Description=containerd container runtime
|
||||
Documentation=https://containerd.io
|
||||
After=network.target local-fs.target
|
||||
|
||||
[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
|
||||
Restart=always
|
||||
|
||||
# (lack of) limits from the upstream docker service unit
|
||||
LimitNOFILE=1048576
|
||||
Type=notify
|
||||
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
|
||||
LimitCORE=infinity
|
||||
LimitNOFILE=infinity
|
||||
TasksMax=infinity
|
||||
|
||||
# set delegate yes so that systemd does not reset the cgroups of containers
|
||||
Delegate=yes
|
||||
OOMScoreAdjust=-999
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target early-docker.target
|
||||
|
Loading…
Reference in New Issue
Block a user