Avahi docker image for multicast-DNS (zeroconf)
Find a file
2025-01-18 14:37:07 +08:00
.gitignore migrate to gitlab 2019-03-24 01:24:41 +01:00
.gitlab-ci.yml add arm32 image versions 2024-11-24 15:30:21 +01:00
docker-entrypoint.sh feat: allow to enable reflector 2024-11-24 15:36:30 +01:00
Dockerfile fix multi-arch builds 2024-11-24 15:33:57 +01:00
LICENSE Initial commit 2018-09-28 00:56:27 +02:00
README.md Aggiorna README.md 2025-01-18 14:37:07 +08:00

Come installare

per installare usare docker-compose

services:
  avahi:
    image: ydkn/avahi
    hostname: OrangePiSMB
    network_mode: host
    volumes:
      - /home/orangepi/dockerfiles/avahi-services:/etc/avahi/services:ro
    restart: unless-stopped

editare il file sudo nano /home/orangepi/dockerfiles/avahi-services/smb.service

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
 <name replace-wildcards="yes">%h</name>
 <service>
   <type>_smb._tcp</type>
   <port>445</port>
 </service>
</service-group>

far ripartire il docker

Avahi Docker Image

Configuration

Put your service definition files in a directory and mount it as a volume to /etc/avahi/services.

Options

Configuration is done through environment variables.

  • ALLOW_INTERFACES set allow-interfaces in avahi-daemon.conf
  • DENY_INTERFACES set deny-interfaces in avahi-daemon.conf

Start the container

docker run -d --restart always \
  --net=host \
  -e ALLOW_INTERFACES=eth0 \
  -v $(pwd)/services:/etc/avahi/services \
  ydkn/avahi:latest