Docker Community Forums

Share and learn in the Docker community.

Error creating container for samba shares regarding port 445

(Hsetr) #1

Hi friends,

for the first time ever I set up Docker CE on Windows 10 x64 Education.

I wanted to run a container with dperson/samba 's image from dockerhub to share some files from my machine for different users with different permissions each. I had this running on a Linux machine before without problems.

When I try to run the container with a simple configuration like:
docker run -it --name samba -p 139:139 -p 445:445 -d dperson/samba -n
-u “user1:pass1”
-u “user2:pass2”
-s “Folder1;c:/Folder1;yes;yes;no;all;none;user1;Folder1”
-s “Folder2;c:/Folder2;yes;yes;no;all;none;user1;Folder2”

I get the following Error:
docker: Error response from daemon: driver failed programming external connectivity on endpoint samba (8fa77ccead15ca07e5583c1efc1d7eafff7b6c5556f2ad205ed31714dcff6527): Error starting userland proxy: Bind for unexpected error Permission denied.

I googled the error and all the answers don’t seem to address my specific case, since I don’t have problems to connect to any port, but specifically port 445 (139 seems to work fine). Somewhere I read that the Docker CE VM “Moby” that runs on Hyper-V used port 445 to connect to the shared drives. I figured this might be a problem.

I have no idea what is wrong and how to fix this, any help will be greatly appreciated.