Docker toolbox behind proxy

This article is for Docker Toolbox only.

So when running docker toolbox, docker host boot2docker image running in VM on Virtual Box.

When using docker toolbox,

you will need to edit the start.sh BEFORE you start the docker command line prompt: USE %5C instead of “\”


export HTTP_PROXY="http://DOMAIN%5Cusername:password@proxy.proxydomain.com:8080"
export HTTPS_PROXY="http://DOMAIN%5Cusername:password@proxy.proxydomain.com:8080"

and then you can start the docker terminal command, it will start the VM using given proxy configuration to your docker machine.

After that when you spinning up a linux docker container.

the container dose not automatically inherit the proxy settings, because that is specific to docker.

so you will need to run the following after the container is up or build your own image.

Notice the case difference.

export http_proxy=”http://DOMAIN%5Cusername:password@proxy.proxydomain.com:8080″
export https_proxy=”http://DOMAIN%5Cusername:password@proxy.proxydomain.com:8080″

Leave Comment

Your email address will not be published. Required fields are marked *