mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
Merge pull request #771 from kinvolk/kai/containerd-default-socket
app-emulation/containerd: Switch to default socket location
This commit is contained in:
commit
2c1655907e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user