Sign inSign up

ensody/avahi

By ensody

•Updated 3 days ago

Avahi multicast DNS / mDNS / Zeroconf Docker image (auto-updated)

Image
Networking
1

10K+

ensody/avahi repository overview

The image is maintained and published here: https://github.com/ensody/avahi⁠

⁠Avahi Docker image

This is a simple Avahi Docker image.

The CI automatically checks for updates (e.g. security fixes) several times daily and publishes a new image only when necessary. So, this image could be used with podman-auto-update or Watchtower.

⁠Defaults

There's a default avahi-daemon.conf⁠.

⁠Volumes

Usually you can just add one or more service definitions to /etc/avahi/services.

For more customization you can add your own /etc/avahi/avahi-daemon.conf or override the whole /etc/avahi folder.

⁠Example

This will add a Samba service for auto-discovery on Linux and macOS, including Time Machine support.

AVAHI_ROOT=/var/data/samba-avahi
mkdir -p "$AVAHI_ROOT/services"
cat > "$AVAHI_ROOT/smb.service" <<EOF
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name replace-wildcards="yes">%h</name>
  <service>
    <type>_adisk._tcp</type>
    <txt-record>sys=waMa=0,adVF=0x100</txt-record>
    <txt-record>dk0=adVN=TimeMachine,adVF=0x82</txt-record>
  </service>
  <service>
    <type>_smb._tcp</type>
    <port>445</port>
  </service>
</service-group>
EOF

docker run --restart always -d --name samba-avahi --net=host -v "$AVAHI_ROOT/services/:/etc/avahi/services/" ghcr.io/ensody/avahi:latest

Tag summary

Content type

Image

Digest

sha256:498f53269…

Size

6.8 MB

Last updated

3 days ago

docker pull ensody/avahi