Closed meigea closed 5 years ago
ccproxy
echo proxy=http://proxy_host:808 >> /etc/hosts
# add http_proxy=http://proxy_host:808 https_proxy=http://proxy_host:808
export http_proxy https_proxy
## /etc/yum.conf ```buildoutcfg proxy=http://proxy_host:808
https_proxy = http://proxy.yoyodyne.com:18023/ http_proxy = http://proxy_host:808/
创建文件夹 mkdir /etc/systemd/system/docker.service.d 创建文件 touch /etc/systemd/system/docker.service.d/http-proxy.conf 编辑文件 vim /etc/systemd/system/docker.service.d/http-proxy.conf 在文件中加入以下内容: [Service] Environment="HTTP_PROXY=http://[proxy-addr]:[proxy-port]/" 其中 proxy-addr是代理的IP地址, proxy-port 是代理的端口。 保存修改并重载daemon sudo systemctl daemon-reload 重启docker sudo systemctl restart docker 重启之后就能正常下载镜像啦~ 祝使用愉快~
centos7 使用远程windows的代理
ccproxy
/etc/hosts
/etc/profile
export http_proxy https_proxy
/etc/wgetrc
Docker-proxy