hexo容器一直映射80端口。docker重启后起不来hexo,报错如下

1
2
ERROR: for hexo-server  Cannot start service hexo-server: driver failed programming external connectivity on endpoint hexo-server (32643e5b5ba8b0adb6f203032e5e36cd6b3e531ab908f0ab77bb4a877a21cef6): Error starting userland proxy: /forwards/expose/port returned unexpected status: 500
ERROR: Encountered errors while bringing up the project.

查看端口
netstat -ano | grep 80

1
2
3
λ netstat -ano | grep 80
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 10820
TCP 0.0.0.0:1080 0.0.0.0:0 LISTENING 8732

打开任务管理器找到PID为10820的进程,com.docker.backend.exe

结束该进程,过一会com.docker.backend.exe进程会自己重新启动好

80端口也已经释放了,又可以快乐的玩耍了