/etc/docker/daemon.json
{
"insecure-registries":["172.29.xx.xx:xx"]
}
/etc/docker/daemon.json
{
"insecure-registries":["172.29.xx.xx:xx"]
}
npm config set proxy http://xxx.xxx.xxx:xxx
/etc/wsl.conf
启用systemd
[boot]
systemd=true
function set_proxy(){
export http_proxy="http://172.19.96.1:10812";
export https_proxy="http://172.19.96.1:10812";
export HTTP_PROXY="http://172.19.96.1:10812";
export HTTPS_PROXY="http://172.19.96.1:10812";
}
function unset_proxy(){
unset http_proxy HTTP_PROXY https_proxy HTTPS_PROXY
curl -s "https://ip.jackjyq.com" | grep -E -i "ip:|country:"
}
add-apt-repository “deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/ \
$(lsb_release -cs) \
stable”
sudo apt-cache madison docker-ce
apt-get update
sudo apt-cache madison docker-ce
sudo apt-get install docker-ce docker-ce-cli containerd.io