dns - Pulling docker images behind a proxy -


i have been having trouble using docker whenever on campus' wifi. trying pull or run image needs pulled gives me following error:

error while pulling image: https://index.docker.io/v1/repositories/library/redis/images: dial tcp: lookup index.docker.io on 66.170.14.12:53: server misbehaving 

my research has lead me across this post seems consistent i'm experiencing, proposed fix has not worked. can avoid issue in future?

as explained in context (windows, corporate proxy), need set http_proxy environment variables in dockerfile (if dockerfile needs access internet) or in session environment variables (in .profile or .bashrc):

export http_proxy=http://<user>:<pwd>@proxy.company:80 export https_proxy=http://<user>:<pwd>@proxy.company:80 export no_proxy=.company,.sock,localhost,127.0.0.1,::1,192.168.59.103 

note docker 1.9, able leave outside dockerfile build-timeargument passing (merge in pr 15182).


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -