ubuntu-proxy-all-in-one
虚拟机proxy设置:
172.16.0.1是物理机在虚拟机网卡上的地址
终端验证:
curl cip.cc
docker pull proxy:
mkdir -p /etc/systemd/system/docker.service.d
vim /etc/systemd/system/docker.service.d/http-proxy.conf
```http-proxy
[Service]
Environment="ALL_PROXY=socks5://172.16.0.1:10808"
Environment="NO_PROXY=localhost,127.0.0.1"
```
systemctl daemon-reload
systemctl restart docker
docker pull k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0
git proxy:
git config --global http.proxy 'socks5://172.16.0.1:10808'
git config --global https.proxy 'socks5://172.16.0.1:10808'
apt proxy
export apt_proxy=Acquire::http::proxy=socks5h://172.16.0.1:10808/
sudo apt-get -o $apt_proxy update