Container: tmpfs mit mode=1777 statt uid=/gid= (#72) #73

Merged
jochen merged 3 commits from fix/container-tmpfs into master 2026-11-19 16:45:58 +00:00
Collaborator

Closes #72.

Podman 5.7 lehnt uid=/gid= als tmpfs-Option ab (unknown mount option "uid=65532"), deshalb startete die Quadlet-Unit nicht.

  • Quadlet-Unit: Tmpfs=/run/mdns-bridged:mode=1777.
  • README: podman run-Beispiel angepasst und Hinweis ergänzt.

Lokal mit Docker getestet: Mit --read-only --cap-drop all --tmpfs /run/mdns-bridged:mode=1777 legt der Daemon das Statussocket an, --status antwortet. Mit --tmpfs ohne mode ist das Verzeichnis unter Docker nicht beschreibbar, deshalb steht mode=1777 ausdrücklich da. Unter Podman ist mode als tmpfs-Option dokumentiert, getestet ist es dort noch nicht.

Kein neues Image nötig: Es ändern sich nur die Unit-Datei und die Doku.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vh6img4RYU1F52VUwGJcrp

Closes #72. Podman 5.7 lehnt `uid=`/`gid=` als tmpfs-Option ab (`unknown mount option "uid=65532"`), deshalb startete die Quadlet-Unit nicht. - Quadlet-Unit: `Tmpfs=/run/mdns-bridged:mode=1777`. - README: `podman run`-Beispiel angepasst und Hinweis ergänzt. Lokal mit Docker getestet: Mit `--read-only --cap-drop all --tmpfs /run/mdns-bridged:mode=1777` legt der Daemon das Statussocket an, `--status` antwortet. Mit `--tmpfs` ohne `mode` ist das Verzeichnis unter Docker nicht beschreibbar, deshalb steht `mode=1777` ausdrücklich da. Unter Podman ist `mode` als tmpfs-Option dokumentiert, getestet ist es dort noch nicht. Kein neues Image nötig: Es ändern sich nur die Unit-Datei und die Doku. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Vh6img4RYU1F52VUwGJcrp
Container: tmpfs with mode=1777 instead of uid=/gid=
Some checks failed
ci / rust (pull_request) Has been cancelled
container / image (pull_request) Has been cancelled
ci / rust (push) Has been cancelled
a9e4f7bc02
Podman rejects uid= and gid= as tmpfs options ("unknown mount option
uid=65532"), so the Quadlet unit failed to start. mode=1777 is valid
for Podman and Docker and lets the daemon user create the status
socket; the daemon is the only process in the container (#72).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh6img4RYU1F52VUwGJcrp
Quadlet: rely on the image's health check
Some checks failed
ci / rust (push) Has been cancelled
ci / rust (pull_request) Has been cancelled
container / image (pull_request) Has been cancelled
262df2521f
HealthCmd with a plain command makes Podman run it through /bin/sh,
which the distroless image does not have, so the health check failed.
The image already carries a HEALTHCHECK in exec form (mdns-bridged
--status every 60 s); drop HealthCmd/HealthInterval from the unit (#72).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh6img4RYU1F52VUwGJcrp
Container docs: LAN-attached networks besides host
All checks were successful
ci / rust (push) Successful in 3m17s
ci / rust (pull_request) Successful in 3m17s
container / image (pull_request) Successful in 1m7s
1de60a0d04
The container needs to sit on the LAN segment, not necessarily in the
host's network namespace: a macvlan or OVS/OVN network (netavark-ovs)
works as well, with interfaces/source_addr of the container itself.
Reported working with OVS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh6img4RYU1F52VUwGJcrp
jochen approved these changes 2026-11-19 16:45:42 +00:00
jochen merged commit 1cc4ab8a90 into master 2026-11-19 16:45:58 +00:00
jochen deleted branch fix/container-tmpfs 2026-11-19 16:45:59 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jochen/mdns-bridge!73
No description provided.