Merge pull request #771 from kinvolk/kai/containerd-default-socket

app-emulation/containerd: Switch to default socket location
This commit is contained in:
Kai Lüke 2021-01-11 16:50:48 +01:00 committed by GitHub
commit 2c1655907e
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# persistent data location
root = "/var/lib/containerd"
# runtime state information
state = "/run/docker/libcontainerd/containerd"
state = "/run/containerd"
# set containerd as a subreaper on linux when it is not running as PID 1
subreaper = true
# set containerd's OOM score
@ -10,7 +10,7 @@ disabled_plugins = []
# grpc configuration
[grpc]
address = "/run/docker/libcontainerd/docker-containerd.sock"
address = "/run/containerd/containerd.sock"
# socket uid
uid = 0
# socket gid

View File

@ -6,9 +6,14 @@ After=network.target
[Service]
Delegate=yes
Environment=CONTAINERD_CONFIG=/usr/share/containerd/config.toml
ExecStartPre=mkdir -p /run/docker/libcontainerd
ExecStartPre=ln -fs /run/containerd/containerd.sock /run/docker/libcontainerd/docker-containerd.sock
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/bin/containerd --config ${TORCX_UNPACKDIR}${TORCX_IMAGEDIR}${CONTAINERD_CONFIG}
KillMode=process
Type=notify
Restart=always
RestartSec=5
# (lack of) limits from the upstream docker service unit
LimitNOFILE=1048576