2016-03-27 11:14:42 +00:00
|
|
|
[Unit]
|
2016-04-01 12:49:25 +00:00
|
|
|
Description=Containerd Standalone OCI Container Daemon
|
2016-03-27 11:14:42 +00:00
|
|
|
Documentation=https://containerd.tools/
|
2016-04-01 12:49:25 +00:00
|
|
|
After=network.target containerd.socket
|
|
|
|
Requires=containerd.socket
|
2016-03-27 11:14:42 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/sysconfig/containerd
|
2016-08-23 15:13:07 +00:00
|
|
|
ExecStart=/usr/sbin/containerd --listen fd:// $CONTAINERD_OPTS
|
2016-03-27 11:14:42 +00:00
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=1048576
|
|
|
|
LimitCORE=infinity
|
2017-04-12 08:37:07 +00:00
|
|
|
|
2016-04-19 10:37:57 +00:00
|
|
|
# While containerd doesn't directly modify cgroups, we have to make sure that
|
|
|
|
# systemd doesn't suddenly decide to mess around with runC's cgroup setup.
|
|
|
|
Delegate=true
|
2016-03-27 11:14:42 +00:00
|
|
|
|
2017-04-12 08:37:07 +00:00
|
|
|
# TasksMax is set to a silly value by default, so we need to bump it up to
|
|
|
|
# infinity so that containers don't randomly fail to spawn.
|
|
|
|
TasksMax=infinity
|
|
|
|
|
2016-03-27 11:14:42 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|