This has bothered me for ages, but today I worked it out.
I am using a docker image for samba (dperson/samba) and that works fine after a bit of work, but it always bothered me that I could not see the computer in the home network. I know it is more secure not to, but sometimes convenience wins.
I finally found the answer, and it is wsdd
I found an undocumented, wsdd docker image image with 500k downloads in docker hub but no documentation at all. This yaml was enough to allow me to call it what I wanted rather than it’s rather prosaic name and it came up INSTANTLY:
wsdd:
image: viniciusleterio/wsdd
container_name: wsdd
network_mode: host
restart: always
command: >
-i eth0
-n MyServerName