自学内容网 自学内容网

Windows+Docker

1.问题

wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理。

在你的windows的C:\Users\<your_username>目录下面创建一个.wslconfig文件,往里面写入:

[experimental]
autoMemoryReclaim=gradual  
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true

关闭:wsl --shutdown,重启:wsl

2.镜像

    "https://docker.mirrors.ustc.edu.cn",
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com",
    "https://mirror.ccs.tencentyun.com"

原文地址:https://blog.csdn.net/m0_53292003/article/details/143031921

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!