window10 项目启动docker 报错

本地docker for window 启动一直报错

最后参考博客解决

https://blog.csdn.net/keineahnung2345/article/details/84670990

ERROR: for jmc  Cannot start service biz: driver failed programming external connectivity on endpoint jmc (58468641fed1c6a699f68b02eb21c24f990042033d4b8d13fc354e956224a9e6): Error starting userland proxy: listen tcp 0.0.0.0:31126: bind: Only one usage of each socke
t address (protocol/network address/port) is normally permitted.

ERROR: for biz  Cannot start service biz: driver failed programming external connectivity on endpoint jmc (58468641fed1c6a699f68b02eb21c24f990042033d4b8d13fc354e956224a9e6): Error starting userland proxy: listen tcp 0.0.0.0:31126: bind: Only one usage of each socke
t address (protocol/network address/port) is normally permitted.
ERROR: Encountered errors while bringing up the project.

因为第一次是docker 卡住无法运行 于是我重启了docker 在第二次运行的时候  各种报错说明端口被占用

按照以下的方法来执行:

1,重启docker 

2,重启容器 docker restart container 

3,docker-compose down 再执行docker-compose up 

4,3方法失败去修改service的端口  执行成功

5,重新进入容器

你可能感兴趣的:(IT)