当前位置: 代码迷 >> 综合 >> docker [An attempt was made to access a socket in a way forbidden by its access permissions] 解决方案
  详细解决方案

docker [An attempt was made to access a socket in a way forbidden by its access permissions] 解决方案

热度:92   发布时间:2023-11-22 06:02:52.0

docker 启动容器报错:
docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:4449: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

但是通过netstat 查看也并没有发现4449端口被占用。之前也总是遇到这个问题,后面莫名奇妙又好了,今天终于在github 上找到了解决方法
github 解决方案

解决步骤

  1. cmd 执行
netsh int ipv[46] set dynamic tcp start=49152 num=16384
  1. 重启电脑
  相关解决方案