Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 628 Bytes

File metadata and controls

39 lines (20 loc) · 628 Bytes

设置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/v2ray
git 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