[英]ddev/docker fails with “Failed programming external connectivity”, Windows 10
ddev gets this nasty error in ddev start
(Windows 10, Docker for Windows 18.03) ddev 在
ddev start
遇到这个令人讨厌的错误(Windows 10,Docker for Windows 18.03)
ERROR: for ddev-xxx-db Cannot start service db: driver failed programming external connectivity on endpoint ddev-sanjacinto-db (313d966276870feb88b89ec7ab8f34ec9c876cfe165ff45185fa725fdbbd7f70): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:32777:tcp:172.18.0.2:3306: input/output error错误:对于 ddev-xxx-db 无法启动服务 db:驱动程序在端点 ddev-sanjacinto-db 上编程外部连接失败(313d966276870feb88b89ec7ab8f34ec9c876cfe165ff45185fa725fdbbd7f70):错误启动/7000000000000000000:0000000000000000000000000000000000:000 0.2:3306:输入/输出错误
Encountered errors while bringing up the project.启动项目时遇到错误。
I've seen this many times, only on Windows, and have always been able fix it with:我已经多次看到这个,只在 Windows 上,并且总是能够修复它:
ddev poweroff
There are lots of answers on the internet, I think the most important open issue is with docker-compose here: https://github.com/docker/compose/issues/3277网上有很多答案,我认为最重要的开放问题是这里的 docker-compose: https : //github.com/docker/compose/issues/3277
On Windows systems, CTRL+C does not stop the container.
在 Windows 系统上,CTRL+C 不会停止容器。 So, first type CTRL+C to get the prompt back (or open another shell), then type docker container ls to list the running containers, followed by docker container stop to stop the container.
因此,首先键入 CTRL+C 以返回提示(或打开另一个 shell),然后键入 docker container ls 以列出正在运行的容器,然后键入 docker container stop 以停止容器。 Otherwise, you get an error response from the daemon when you try to re-run the container in the next step.
否则,当您尝试在下一步中重新运行容器时,您会收到来自守护程序的错误响应。
I had the same problem, I thought with CTRL+C stoped the container but it was not the case, any af the answer above works because they all stop containers, restarting docker or stoping container explicity.我遇到了同样的问题,我认为 CTRL+C 停止了容器,但事实并非如此,上面的任何答案都有效,因为它们都停止了容器,重新启动了 docker 或显式停止了容器。
I prefer:我更喜欢:
docker container ls #list containers running
docker stop [container id] #replace [container id] with the container id running
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.