fhem / fhem/fhem-docker

avahi-daemon not startable

Đang mở
#148 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
90
Fork
26
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
9

Mô tả

Hi,
i need avahi-browse inside of Fhem Docker.
So i need to install those packets:
`apt-get install -y avahi-utils avahi-daemon libnss-mdns systemd`

My Dockerfile:

FROM fhem/fhem:bullseye

RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y avahi-utils avahi-daemon libnss-mdns systemd && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

My docker compose file:

  fhem:

build:
context: fhem
image: fhem:1.0
container_name: fhem
hostname: fhem
volumes:
- fhem:/opt/fhem
- /var/run/dbus:/var/run/dbus
ports:
- 8083:8083
- 7072:7072
restart: unless-stopped

After starting the docker the daemon didn´t start:

root@fhem:/tmp# avahi-browse -a

Failed to create client object: Daemon not running

So I have to do the following steps for a proper working inside of docker:

rm /run/dbus/pid

dbus-daemon --system
/etc/init.d/avahi-daemon start
avahi-browse -a
[.....]

Its a problem inside of the fhem docker why dbus is not startable?
If not, how can i add a custom startscript to execute the needed steps after each container start?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.