Completely solve the problem of docker containers running on Windows 10 due to port binding

彻底解决win10下docker容器端口绑定失败

Completely solve the problem of docker containers running on Windows 10 due to port binding

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

临时处理,重启winnat

net stop winnat
docker start container_name
net start winnat

永久处理,修改windows动态端口范围

netsh int ipv4 set dynamic tcp start=49152 num=16384

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注