amazon ec2 - Using docker behind a proxy on an EC2 instance -


i'm trying run docker inside ec2 vm instance. instance behind http proxy. far can tell docker install went okay.

here instance information

linux ip-x-x-x-x 3.8.0-31-generic #46~precise1-ubuntu smp wed sep 11 18:21:16 utc 2013 x86_64 x86_64 x86_64 gnu/linux 

the docker version i've

docker version 0.6.3, build b0a49a3 

when try run simple docker command hangs long time.

$sudo docker run -i -t ubuntu /bin/bash unable find image 'ubuntu' (tag: latest) locally pulling repository ubuntu 

i've feeling has http proxy settings.

i tried setting proxy in different ways.

for example based on this tried still doesn't work.

$sudo http_proxy=http://proxy.xyz.com:8080 docker run -i -t ubuntu /bin/bash unable find image 'ubuntu' (tag: latest) locally pulling repository ubuntu 

any idea missing here?

you need running docker daemon http_proxy environment variable, since pulling of images happens through daemon. if you're on ubuntu, can accomplished modifying /etc/init/docker.conf.

update:

we correctly support /etc/default/docker now, best way accomplish (on ubuntu , debian) via export http_proxy=... inside /etc/default/docker.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -