ddev/docker 失败 "Failed programming external connectivity",Windows 10

ddev/docker fails with "Failed programming external connectivity", Windows 10

ddev 在 ddev start (Windows 10, Docker for Windows 18.03)

中得到这个讨厌的错误

错误:对于 ddev-xxx-db 无法启动服务 db:驱动程序在端点 ddev-sanjacinto-db 上编程外部连接失败(313d966276870feb88b89ec7ab8f34ec9c876cfe165ff45185fa725fdbbd7f70):启动用户态代理时出错:mkdir /port/tcp:0.0.0.0: 32777:tcp:172.18.0.2:3306:input/output错误

启动项目时遇到错误。

我已经看到很多次了,只在 Windows 上看到过,并且总是能够通过以下方式修复它:

  • ddev poweroff
  • 必要时重新启动docker

网上有很多答案,我认为最重要的未决问题是docker-compose这里:https://github.com/docker/compose/issues/3277

docker description

On Windows systems, CTRL+C does not stop the container. 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. Otherwise, you get an error response from the daemon when you try to re-run the container in the next step.

我有同样的问题,我以为用 CTRL+C 停止了容器,但事实并非如此,上面的任何答案都有效,因为它们都停止了容器,重新启动 docker 或显式停止容器。

我更喜欢:

docker container ls #list containers running
docker stop [container id] #replace [container id] with the container id running