大家好,又见面了,我是你们的朋友全栈君。
bash proxy
代码语言:javascript复制export http_proxy=XXX
export https_proxy=XXX
apt proxy
sudo vim /etc/apt/apt.conf
代码语言:javascript复制Acquire::http::proxy "http://XXX";
Acquire::https::proxy "https://XXX";
Acquire::ftp::proxy "ftp://XXX";
Acquire::socks::proxy "socks://XXX";
docker proxy
代码语言:javascript复制mkdir -p /etc/systemd/system/docker.service.d
sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf
代码语言:javascript复制[Service]
Environment="HTTP_PROXY=http://[proxy-addr]:[proxy-port]/" "HTTPS_PROXY=https://[proxy-addr]:[proxy-port]/"
#Environment="HTTP_PROXY=http://[proxy-addr]:[proxy-port]/" "HTTPS_PROXY=https://[proxy-addr]:[proxy-port]/" "NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com"
代码语言:javascript复制systemctl daemon-reload
systemctl restart docker
install with proxy
代码语言:javascript复制sudo -E add-apt-repository ppa:xxx/xxx
#set time and time zone
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/162712.html原文链接:https://javaforall.cn