From 303f63c22218fed88353fe0d49930b16d29982ad Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 2 Sep 2022 14:49:25 +0200 Subject: [PATCH] Add access to containerd for Supervisor (#2102) Add direct access to Docker's containerd instance by passing in its GRCP socket. This can be useful to talk to the containerd GRPC API directly, which exposes more information than the Docker API (e.g. OOM kill events). --- buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor | 1 + 1 file changed, 1 insertion(+) diff --git a/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor b/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor index d180ae6d8..580ab9b28 100755 --- a/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor +++ b/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor @@ -82,6 +82,7 @@ if [ -z "${SUPERVISOR_CONTAINER_ID}" ]; then --privileged --security-opt apparmor="hassio-supervisor" \ --oom-score-adj=-300 \ -v /run/docker.sock:/run/docker.sock:rw \ + -v /run/docker/containerd/containerd.sock:/run/docker/containerd/containerd.sock:rw \ -v /run/systemd-journal-gatewayd.sock:/run/systemd-journal-gatewayd.sock:rw \ -v /run/dbus:/run/dbus:ro \ -v /run/supervisor:/run/os:rw \