Exposing port 139 in network mode


I’m attempting to enable a samba share within a given container. It seems if I expose port 139 the container restarts constantly without any clear error message.

I’ve had less trouble exposing port 445.

Is this a known issue? Or should this be entirely possible?


Hi @drewcovi I can’t think of any reason why exposing port 139 would cause an issue.

Could you share your Dockerfile or docker-compose.yml that contains this configuration?

You may also try taking a look at the logs for the container from the host OS using journalctl.


hmmm strange… I could try to bring it back. I’ve since just used 445 without issue and a perfectly working samba