Docker运行失败,并显示从守护程序发出的错误响应 [英] Docker run failed with Error response from daemon

查看:378
本文介绍了Docker运行失败,并显示从守护程序发出的错误响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是运行

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

,并且拉完所有图片后,会返回此错误:

and after pulling all images returns this error:

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).

这是我的码头版本信息

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

如何解决这个问题?

推荐答案

p>您没有提供Docker版本,系统或Docker进程等信息,所以我认为最有可能的情况。

You didn't provide informations such as Docker version, system or docker processes running so I assume the most likely situation.

输出包含: EADDRINUSE失败。这意味着端口 80 被别的东西使用。您可以使用 lsof -i TCP:80 来检查哪个进程在该端口上侦听。如果端口没有运行,Docker可能会有一些问题。例如,不会立即发布端口的那个。

The output contains: Failure EADDRINUSE. It means that port 80 is used by something else. You can use lsof -i TCP:80 to check which process is listening on that port. If there is nothing running on the port, it might be some issue with Docker. For example the one with not releasing ports immediately.

这篇关于Docker运行失败,并显示从守护程序发出的错误响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆