Ports are not available: listen tcp 0.0.0.0/60017: bind: An attempt was made to access a socket i...

【问题】使用docker-compose.exe up resbot启动容器时,报tcp端口不可用
Ports are not available: listen tcp 0.0.0.0/60017: bind: An attempt was made to access a socket in a way forbidden by its access permissions
【解决办法】

1、查看端口占用状态:
netstat -ano|findstr "60017"
未查询到内容,说明该端口未被占用。
2、打开PowerShell,重启winnat:

PS D:\workspace\resbot-compose> net stop winnat
发生系统错误 5。

拒绝访问。

3、使用管理员身份打开PowerShell,重启winnat:

PS C:\Windows\system32> net stop winnat

Windows NAT Driver 服务已成功停止。

PS C:\Windows\system32> net start winnat

Windows NAT Driver 服务已经启动成功。

不需要重启电脑
再次使用docker-compose.exe up resbot启动容器成功!

参考链接:https://stackoverflow.com/questions/65272764/ports-are-not-available-listen-tcp-0-0-0-0-50070-bind-an-attempt-was-made-to/65274083

你可能感兴趣的:(Ports are not available: listen tcp 0.0.0.0/60017: bind: An attempt was made to access a socket i...)