ubuntu proxy

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:"
}

WSL安装docker

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