Search code examples
dockerhttp-proxy

How to change proxy information for New Docker for Mac?


When I do 'docker info', I see proxy urls.

I am trying to bypass proxy while I am doing docker pull from home (outside work network).
My .bash_profile do not have proxy information either so I am not sure where docker info is pulling proxy url from.

How can I unset those proxy urls?


Solution

  • It depends on your version of docker (using VirtualBox, or using the new docker for Mac xhyve VM)

    In both cases, you have a boot2docker VM: check if you see (after a docker-machine ssh <your_machine>) a:

    • /var/lib/boot2docker/bootsync.sh which could set variables (including http_proxy ones)
    • /var/lib/boot2docker/profile which could declare DOCKER_OPTS with proxy urls in it.