Windows Docker Desktop 新建 Docker 容器出现错误
错误描述
提示xxx端口不可用,但并未出现端口占用情况。

详细错误信息

Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:xxx -> 0.0.0.0:0: listen tcp 0.0.0.0:xxx: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

问题原因
解决方法
重启 winnat

# 先停止 winnat
net stop winnat
# 再启动 winnat
net start winnat

标签: none

添加新评论