Firmware error with daemon error

I just run

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

and after pulling all the images this error returns:

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

Here is my docker info.

 Client: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git commit: 8eab29e Built: Thu Jul 28 21:15:28 2016 OS/Arch: darwin/amd64 Server: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git commit: 8eab29e Built: Thu Jul 28 21:15:28 2016 OS/Arch: linux/amd64 

How to fix it?

+5
source share
1 answer

You did not provide information, for example, the version of Docker, system or docker processes, so I assume the most likely situation.

The output contains: Failure EADDRINUSE . This means that port 80 is being used by something else. You can use lsof -i TCP:80 to check which process is listening on this port. If nothing works in the port, there might be a problem with Docker. For example, one who does not release ports immediately .

+4
source

All Articles