You are currently viewing [SOLVED] Docker & Windows 10: Error Starting Userland Proxy – Check Simple Solution In 3 Mins!
Photo by Tj Holowaychuk on Unsplash
Could You Please Share This Post? I Appreciate It And Thank YOU! :) Have A Nice Day!
4.8
(784)

To resolve this issue from the title [ Error starting userland proxy ] we must dot the following things from this article. Usually use dockers from Linux , but this time I had to fight them under Windows 10. After a few minutes I found out again that everything was easier under Linux, because I was facing problems all the time with correct and stable operation of Docker for Windows. But to the point, what was the problem?

Problem

We run the container and we get the error:

Starting docker_jenkins_1 ... error

Starting docker_nexus_1   ...

 

ERROR: for docker_jenkins_1  Cannot start service jenkins: driver failed programming external connectivity on endpoint docker_jenkins_1 (f275652123e7c423e6cb482efc6bf88775b1b971c971b3f4e2f30010a3a4debf): Error starting userland proxy: listeStarting docker_nexus_1   ... error

 

ERROR: for docker_nexus_1  Cannot start service nexus: driver failed programming external connectivity on endpoint docker_nexus_1 (bf3bfd7a65e23a2f0625d8389689359dc7990599a6fac0bd13aed0cf00619f32): Error starting userland proxy: listen tcp 0.0.0.0:8081: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

 

ERROR: for jenkins  Cannot start service jenkins: driver failed programming external connectivity on endpoint docker_jenkins_1 (f275652123e7c423e6cb482efc6bf88775b1b971c971b3f4e2f30010a3a4debf): Error starting userland proxy: listen tcp 0.0.0.0:50000: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

 

ERROR: for nexus  Cannot start service nexus: driver failed programming external connectivity on endpoint docker_nexus_1 (bf3bfd7a65e23a2f0625d8389689359dc7990599a6fac0bd13aed0cf00619f32): Error starting userland proxy: listen tcp 0.0.0.0:8081: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

ERROR: Encountered errors while bringing up the project.

Cause

The problem is with the Fast Startup feature, which was introduced in Windows 10. Its purpose is to make Windows start faster. But nothing happens magically. Behind the buzz word “Fast Startup” there is a kind of hibernation and cache of certain elements of the application. As a result, when the system is restarted, they are not restarted, but use the cache. And this is why, despite restarting or shutting down and restarting the computer, we still get the error that the port is already in the device.,

Solution

To solve the above problem, just turn off the Fast Startup options. We can do it, for example, in the following two ways:

1# Solution

  • Open the Start Menu and enter Power Options
  • Click in the left side menu: Choose what the power buttons do
Docker & Windows 10: Error starting userland proxy [ROZWIĄZANY] error response from daemon: ports are not available: listen tcp 0.0.0.0:3306: bind: only one usage of each socket address (protocol/network address/port) is normally permitted.
error response from daemon: ports are not available: listen tcp 0.0.0.0:3306: bind: only one usage of each socket address (protocol/network address/port) is normally permitted.
  • In the Shutdown options section, CHECK the checkbox: Enable fast startup (recommended)
  • Restart the computer. Remember to close all running containers before restarting.
Docker & Windows 10: Error starting userland proxy [ROZWIĄZANY] error response from daemon: ports are not available: listen tcp 0.0.0.0:3306: bind: only one usage of each socket address (protocol/network address/port) is normally permitted.

2# Solution

The second way is to change an entry in the system registry.

  • Start the Registry Editor or enter regedit in the Start Menu.
  • We are looking for an entry below, open the file: HiberbootEnabled and change the value:
    • 0 – disable Fast Startup
    • 1 – turn on Fast Startup
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power

Good practice

Unfortunately, I noticed that despite disabling Fast Start, I was sometimes getting this error again. I also noticed that this only happened when I hadn’t disabled all running containers before restarting or shutting down my computer, too …

Always turn off all containers after finishing work 🙂

Error starting userland proxy: listen tcp4 0.0 0.0 3306 bind: address already in use, Cannot start service Ports are not available docker, Docker Cannot start service Ports are not available
Could You Please Share This Post? 
I appreciate It And Thank YOU! :)
Have A Nice Day!

BigData-ETL: image 7YOU MIGHT ALSO LIKE

How useful was this post?

Click on a star to rate it!

Average rating 4.8 / 5. Vote count: 784

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?