Snail 发表于 2017-9-11 16:36:39

[docker]透过proxy进行docker pull

公司网络限制,必须通过proxy**。使用docker pull时一直出现如下错误:# sudo HTTP_PROXY=http://186.100.4.107:808/ docker pull busybox
Pulling repository busybox
2014/09/21 23:54:08 Get https://index.docker.io/v1/repositories/busybox/images: dial tcp: lookup index.docker.io: no such host

解决办法(以centos为例,其他系统类似):修改/etc/sysconfig/dockerHTTP_PROXY=http://186.100.4.107:808
http_proxy=$HTTP_PROXY
HTTPS_PROXY=$HTTP_PROXY
https_proxy=$HTTP_PROXY
export HTTP_PROXY HTTPS_PROXY http_proxy https_proxy
页: [1]
查看完整版本: [docker]透过proxy进行docker pull