Description
What I see
Browsing macOS 15.3 Finder's "Networks" shows an entry called "files". Double-clicking it fails to connect.
Using Finder's "Go to server" I can use the correct URL for my Samba container, which opens, and adds another entry called "files.local" (with the TimeCapsule icon) into Finder's "Networks".
What I expected
I expected "Networks" to list my Samba container with the TimeCapsule icon, and for opening it to succeed and show the list of shares.
More info
My docker host is called portainer.local
, and my Samba container using macvlan
networking is called files.local
. The entrypoint.sh
script is writing this samba.service
:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">files</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=TimeCapsule</txt-record>
</service>
<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-group>
Wild guess
I think <hostname>
needs to go in the _device-info._tcp
section. Maybe the others too? Currently the dns-sd
tool in macOS outputs the portainer
address, which may explain the failure to connect.
$ dns-sd -L files _device-info._tcp
Lookup files._device-info._tcp.local
DATE: ---Sat 01 Feb 2025---
14:17:14.671 ...STARTING...
14:17:15.102 files._device-info._tcp.local. can be reached at portainer.local.:0 (interface 14)
model=TimeCapsule
But I don't really understand what's happening or what Finder is expecting.
Activity