设置docker代理
mkdir /etc/systemd/system/docker.service.d
vim /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://127.0.0.1:8000/" "HTTPS_PROXY=http://127.0.0.1:8000/" "NO_PROXY=localhost,127.0.0.1,192.168.1.106,yun.nju.edu.cn"
sudo systemctl daemon-reload
sudo systemctl restart docker
docker info开启v2ray代理
~/v2ray/v2raygit clone https://git.nju.edu.cn/xulzee/v2ray.git
nohup ./v2ray/v2ray > v2ray.log 2>&1 &
git config --global https.proxy http://127.0.0.1:8000
git config --global https.proxy https://127.0.0.1:8000