简体   繁体   中英

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)

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

Encountered errors while bringing up the project.

I've seen this many times, only on Windows, and have always been able fix it with:

  • ddev poweroff
  • Restarting docker if necessary

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

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.

I prefer:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM