docker 容器 设置网络代理

以/bin/bash 形式进入容器:

【设置http 及https代理】,如下:

export http_proxy=http://172.16.0.20:3128

export https_proxy=https://172.16.0.20:3128
 
要取消该设置:
unset http_proxy
unset https_proxy
posted @ 2018-07-16 16:26  雪域蓝心  阅读(4457)  评论(0编辑  收藏  举报