-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Samba server shows up twice in macOS network #135
Comments
Hi there, thanks for raising this issue - I have exactly the same problem - I didn't check, if the I just checked using the App Imagine you buy some crappy cheap hardware which serves it's files using samba - some wifi enabled survilance cam or whatever - from a customer point of view you want it to show up in your devices, even if they didn't implement zeroconf - so finder might do port scanning etc. |
Thanks for the speedy reply. I was half hoping a solution would be a specific permutation of NETBIOS_DISABLE and WSDD2_DISABLE options, but I guess it's not that. I also don't see the |
sure maybe you find a solution - if so let me know in this issue :) |
I think I figured it out - It's NetBIOS on port 445 that advertises using the DNS hostname of the server. If you So the solution seems to be to add 'NETBIOS_DISABLE: 1' to the samba docker environment and then also unload and re-load the netbios plist on the Mac using the above two commands. This is because the previously discovered NetBIOS services seem to be a bit sticky and don't drop off (and flushing the DNS cache doesn't flush those at all.) It's been 10min+ now and it hasn't come back yet (even after docker LXC restart). See if you can replicate? :) Reading: |
thanks so much! interessting fact - when I started with this container I didn't start the |
I've updated https://github.com/ServerContainers/samba/blob/master/TROUBLESHOOTING.md file with your infos - thanks! |
First, great image, been running great in an unprivileged LXC on Proxmox for months now:). Thanks for maintaining!
One question- on my macs, I see my samba server come up twice - once, expectedly, as the 'Time Capsule' with the avahi name I set, and then once more as a 'PC' with the hostname of the LXC container where I run this docker image. How can I get rid of the latter please?
This is what I see:
![Screenshot 2024-07-06 at 08 06 07](https://private-user-images.githubusercontent.com/16268777/346255286-74ad236d-f43c-42ec-b9bb-38445e3ccf89.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMDAzMzgsIm5iZiI6MTcyNjAwMDAzOCwicGF0aCI6Ii8xNjI2ODc3Ny8zNDYyNTUyODYtNzRhZDIzNmQtZjQzYy00MmVjLWI5YmItMzg0NDVlM2NjZjg5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDIwMjcxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiYzViYWJmMDRhNmRlMzQ4NDZmYzU5ZDdlZmIxY2YyZDc3ZmJlMjMxNjBmOWJkMzM3YjhlNzg0OWI0YmU5MWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Q6V-DLrHeK1mkvYtE9d-DxtaGhy1nL1ASswx4yJqe6w)
FWIW, they actually both connect, but I'd rather not have the PC one there.
This is my docker compose (without account / shares lines).
I am not using external avahi.
Thanks!
The text was updated successfully, but these errors were encountered: