homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.57k stars 241 forks source link

dbus and other pids are deleted off the host #557

Closed koush closed 2 weeks ago

koush commented 3 months ago

Describe The Bug

This is the setup guide for avahi:

https://github.com/homebridge/homebridge/wiki/mDNS-Options#avahi-linux-and-docker

    security_opt:
      - apparmor:unconfined
    volumes:
      - /var/run/dbus:/var/run/dbus
      - /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
      - ...

The avahi startup script will delete the running pids in the container: https://github.com/homebridge/docker-homebridge/blob/eff9b94690dbac328929d43296af033bc561a303/rootfs/etc/s6-overlay/scripts/setup.sh#L7

# delete existing pids if they exist
[ -e /var/run/dbus.pid ] && rm -f /var/run/dbus.pid
[ -e /var/run/dbus/pid ] && rm -f /var/run/dbus/pid 
[ -e /run/dbus/pid ] && rm -f /run/dbus/pid

Specifically this pid is within the rw volume on the host machine: /var/run/dbus/pid

Seems to be a bug.

Docker Config

N/A

Logs

No response

Host Operating System

Ubuntu / Debian (or a variant)

Host Architecture

x86_64 / amd64

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 weeks ago

This issue has been closed as no further activity has occurred.