Docker Community Forums

Share and learn in the Docker community.

Jenkins on Docker - Error starting userland proxy: Bind for 0.0.0.0:50000: unexpected error Permission denied

Issue: I am trying to run Jenkins on Docker. I followed all the guidelines on Docker hub Still it is failing. I executed below command:

docker run --name JenkinsServer -p 8080:8080 -p 50000:50000 -v C:\Jenkins_Home:/var/jenkins_home jenkins

The error message is:

docker: Error response from daemon: driver failed programming external connectivity on endpoint JenkinsServer (46bab1a1f5fcbe37d5a8394a4f97bd4b0b9b8c8be18c03b58696fda5daa774ef): Error starting userland proxy: Bind for 0.0.0.0:50000: unexpected error Permission denied.

I checked whether the port is already in use or not through Resource monitor, but none of the services are running on 50000. Ho can I resolve this error?

OS: Windows 10 Enterprise
Docker version: 18.09.2

HI, i have same problem on win10 pro & docker.
and i have this problem:

docker run -p 8085:8080 -v D:\LAVORO\jenkins_data:/var/jenkins_home jenkins

touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied
Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?

Hey skatkar225, my guess is that it has something to do with the high port in the Jenkins recommended docker command. I changed my host port to 20000 and it worked find.
cmd > docker run -p 8080:8080 -p 20000:50000 jenkins

I hope this works for others.