docker 使用 http https socks 代理的设置方法
os: centos7docker:19.03.5方式一 修改文件修改文件: /usr/lib/systemd/system/docker.service添加:[Service]Environment="ALL_PROXY=socks5://192.168.3.6:1080" # socks 代理如果是https 代理(http 代理将https 替换为http即可)Environment="HTTPS_PROXY=https://[proxy-addr]:[proxy-port]/"方式二 shell 模式下 $ export ALL_PR... ...阅读全文