Q: Docker启动容器时,提示端口占用,然后查询端口占用时又没有被占用,这是Windows的bug,可以通过重启net解决。
在管理员powershell下执行如下代码即可。
net stop winnat net start winnat