Docker Desktop: Error response from daemon: driver failed programming external connectivity on endpoint xxx 问题

时间:2023-03-08 16:56:18
Docker Desktop: Error response from daemon: driver failed programming external connectivity on endpoint xxx 问题

右击任务栏 Docker 图标 `Restart` 或 `Quit Docker Deskto` 后之前正常的 zookeeper 容器不会自动启动

通过命令 docker start zk1 启动报错如下错误:

Error response from daemon: driver failed programming external connectivity on endpoint zk1 (7cfb61e95c9ae834e3339d98574ac96f12ab94659bcf573a2a50204ff38164e6): Error starting userland proxy: /forwards/expose/port returned unexpected status:
Error: failed to start containers: zk1

解决方法:

  • Quit Docker Desktop(右击任务栏Desktop图标)

  • 进入 Windows 任务管理器,干掉进程 com.docker.backend.exe 进程

  • 过一会 com.docker.backend.exe 进程会自己重新启动好

  • 再打开 Docker Desktop (双击桌面图标)

  • 当 Docker Desktop 启动好后,zookeeper 容器也自动成功正常启动完了