• Register
0 votes

Problem  :

I am using Mac. I want to run my docker code.

Following is my command:

docker run -d -p 80:80 --name webserver nginx

However I am facing below error:

docker: Error response from daemon: driver failed programming external connectivity on endpoint webserver (bd57efb73c738e3b271db180ffbee0a56cae86c8193242fbc02ea805101df21e): Error starting userland proxy: Bind for unexpected error (Failure EADDRINUSE).

Please let me know if any solution on my error.

6 5 3
7,540 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

I have gone through your post. I understood your problem with docker. I had also faced the similar error in the past. This error is related to the incompatibility problem with windows "fast-boot".

This error is generally caused by the incompatibility with Docker and fastboot. You should either make sure that you stop all the containers before shutting your Windows down or else you should disable the fastboot in your Windows' power settings by performing the procedure given below:

CTRL+R > "powercfg.cpl" > "Choose what the power buttons do" > "Change settings that are currently unavailable" > Deselect "Turn on fast start-up"

You can also try to disable the fastboot with the single command in powershell if you are comfortable in doing so then use the command as given below:

Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power\' -Name HiberbootEnabled -Value 0

9 7 4
38,600 points
0 votes


From your error message, the EADDRINUSE strikes port 80 is meanwhile in use on either the docker VM or probably directly on your laptop. You can either stop whatever is running on that port, or alter the port employed in your Docker, command. To alter to the external port 8080, Employ:

docker run -d -p 8080:80 --name webserver nginx

I had the similar problem with one of my containers. I attempted everything however at the time nothing performed, I attempted the following and launched the container again with success

 sudo service docker stop
 sudo rm /var/lib/docker/network/files/local-kv.db
 sudo service docker start

Latterly this issue started to occur a lot on Windows. You can attempt restarting docker or you can manually stop docker before Windows shutdown - docker begins cleanly on reboot.

Stop all the running containers docker ps -a -q  thereafter Stop the Docker on your machine & restart it.

I got past most of the hurdles bar one. I copied reJSON employing git then compiled the module, then added it in the redis.conf file.

Now the one hurdle left which is possibly the same as what the logs in my post above also tell, where it couldn't connect to IP/port as it was in exercise meanwhile.

redis.conf has "bind" defined. At the time including in the line "loadmodule /path/to/file/rejson.so" (where /path/to/file/ is the correct path), the redis-cli command doesn't link, with the loadmodule command commented out I can link with redis-cli to fine

10 6 4
31,120 points

Related questions

0 votes
1 answer 10 views
Problem: When I try to build the image again (it doesn't work, 137 error as expected), I still get the same error when I try to access the logs: Error response from daemon: configured logging driver does not support reading When I try to inspect the logging driver the ... .LogConfig.Type}}' 3016507bd1dc I get none back. Does anyone what I'm missing or how I can get the logs of the failed build?
asked May 2 Humaira ahmed 50.7k points
0 votes
1 answer 4 views
Problem: Is there a way to fix this? >Docker failed to get default registry endpoint from daemon.
asked 3 days ago Florina Gulnar 6.7k points
0 votes
1 answer 3 views
Problem: Someone somehow assist me please >Warning: failed to get default registry endpoint from daemon
asked 4 days ago Chi Omega 13.6k points
0 votes
1 answer 1 view
1 view
Problem: I'm new to Docker and I can't seem to get my mariadb container running. I have just freshly installed Docker on Macbook Pro running High Sierra. I've simple used this command: docker run --name db -e MYSQL_ROOT_PASSWORD=test -d -p 3306:3306 mariadb Which is supposed to ... 3306 but this will show>3306/tcp as the PORT in docker ps. I would love some help. Thanks in advance.
asked Apr 25 munim01 21k points
0 votes
1 answer 4 views
Problem: Has anyone faced this before? > Error response from daemon: no build stage in current context
asked 3 days ago Priscilla Gurpreet 3.7k points
0 votes
1 answer 21 views
Problem: Can someone please help me with it, Docker: error response from daemon: unknown runtime specified nvidia.?
asked May 2 Moumita Bhowmick 12.9k points
0 votes
1 answer 54 views
Problem: Who is here to help me solving this error response from daemon: bad response from docker engine?
asked Apr 5 ashik 14.6k points
1 vote
1 answer 21 views
Problem : I am trying to add one manager in Docker swarm. But it is showing me the below error. Cannot connect to the Docker daemon. Is the docker daemon running on this host? Any ideas on what I need to do to fix this? Thanks!
asked Mar 31 Sabbir Hossain 14.6k points
0 votes
1 answer 10 views
Problem: I have multiple SQL Server instance and I want to start service automatically for each when system starts. So I choose services state to automatically but it does not start automatically. Here is the error log of one of the SQL Server instances 2018-07-12 17:55: ... computer logon user's account but it does not work. I am not sure why this error occurs and I cant find any useful resource.
asked May 4 jamuna1 30.2k points
0 votes
1 answer 5 views
Problem: I am unable to get Docker Toolbox for Mac running. I had it running a few months ago perfectly. But now, it keep getting the errors: Tcp:// Anyone have any ideas? I'm totally stuck.
asked Mar 21 ummesalma 29.2k points