Mount Systemd Journal socket to the Supervisor container (#4133)

Bind-mount Systemd Journal socket to the Supervisor container. This way
Supervisor can use the socket directly for writing log entries using the
Systemd native Journal protocol [1] instead of logging to stderr of the
container.

[1] https://systemd.io/JOURNAL_NATIVE_PROTOCOL/

(cherry picked from commit dffbe8914734a093b02a1cb0ec0f40adbf3bb109)
This commit is contained in:
Jan Čermák 2025-07-01 17:32:18 +02:00 committed by Jan Čermák
parent 7c7cbf40be
commit 9d7f8a234f
No known key found for this signature in database
GPG Key ID: A78C897AA3AF012B

View File

@ -95,6 +95,7 @@ if [ -z "${SUPERVISOR_CONTAINER_ID}" ]; then
--oom-score-adj=-300 \
-v /run/docker.sock:/run/docker.sock:rw \
-v /run/containerd/containerd.sock:/run/containerd/containerd.sock:rw \
-v /run/systemd/journal/socket:/run/systemd/journal/socket: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 \