# Need to specify proxy settings

**URL:** <https://forums.docker.com/t/need-to-specify-proxy-settings/8650>\
**Category:** Docker Desktop\
**Tags:** macos\
**Created:** [April 7, 2016, 2:25pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650 "2016-04-07T14:25:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lawrenae](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/lawrenae/32/6975_2.png) [@lawrenae](https://forums.docker.com/u/lawrenae)\
**Post date:** [April 7, 2016, 2:25pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/1 "2016-04-07T14:25:15Z")

</div>

### Expected behavior

I need a way to specify proxy settings to the VM so that I can pull images from docker hub. Even if I could get it to read my PROXY\_URL env, that’d be enough I think!

### Actual behavior

I dont see a way to do it

### Information

- docker-for-mac beta 6
- OSX 10.10.5 (gotta love corporate images…)

---

<div class="post-metadata">

**Author:** ![justincormack](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/justincormack/32/6760_2.png) [@justincormack](https://forums.docker.com/u/justincormack)\
**Post date:** [April 7, 2016, 2:27pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/2 "2016-04-07T14:27:59Z")

</div>

You are right, there is currently no way to do this, we are aware of this. What kind of proxy is it?

---

<div class="post-metadata">

**Author:** ![lawrenae](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/lawrenae/32/6975_2.png) [@lawrenae](https://forums.docker.com/u/lawrenae)\
**Post date:** [April 7, 2016, 4:49pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/3 "2016-04-07T16:49:02Z")

</div>

It’s a forward-proxy for gating http/https Internet access – does that  
answer your question?

---

<div class="post-metadata">

**Author:** ![gstipton](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/gstipton/32/7272_2.png) [@gstipton](https://forums.docker.com/u/gstipton)\
**Post date:** [April 12, 2016, 4:40pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/4 "2016-04-12T16:40:10Z")

</div>

This is a deal breaker for me as well. Is some form of proxy support on the near-future roadmap?

---

<div class="post-metadata">

**Author:** ![dmaze](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@dmaze](https://forums.docker.com/u/dmaze)\
**Post date:** [April 20, 2016, 7:25pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/5 "2016-04-20T19:25:39Z")

</div>

It would be enough for me to be able to set `HTTP_PROXY` for the daemon, like `docker-machine create ... --engine-env HTTP_PROXY=...`.

My Docker registry is in an Amazon VPC, and we have a “bastion” host we can `ssh -D 1080` through. Once I do that, ssh provides a SOCKS proxy I can use. In Docker Machine land, I instead use Polipo to provide an HTTP proxy, and then point `HTTP_PROXY` at that. If there were a way for Docker-for-Mac to set that variable for the daemon, it would meet my needs without needing to change anything in the daemon itself.

---

<div class="post-metadata">

**Author:** ![harsimranmaan](https://avatars.discourse-cdn.com/v4/letter/h/ea666f/32.png) [@harsimranmaan](https://forums.docker.com/u/harsimranmaan)\
**Post date:** [April 20, 2016, 10:53pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/6 "2016-04-20T22:53:48Z")

</div>

Is this on the roadmap? I need the proxy setup to pull images from an internal registry.

---

<div class="post-metadata">

**Author:** ![atsatt](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/atsatt/32/8921_2.png) [@atsatt](https://forums.docker.com/u/atsatt)\
**Post date:** [April 27, 2016, 12:30am UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/7 "2016-04-27T00:30:38Z")

</div>

I’m assuming that you intend to fix this. I am very enthusiastic about the new implementation, but…

For me, and I suspect many others, the “VPN compatibility mode” is a great step forward, and critical to enable use while connected to a corporate VPN; however, we _must_ be able to route requests through the corporate HTTP/HTTPS proxy in order to reach [index.docker.io](http://index.docker.io).

Without a fix, this means that even with this new implementation on the Mac, it is **still** the case that neither our remote developers (myself included) nor our customers who rely on the Cisco VPN can use our Docker based solutions.

---

<div class="post-metadata">

**Author:** ![atsatt](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/atsatt/32/8921_2.png) [@atsatt](https://forums.docker.com/u/atsatt)\
**Post date:** [April 27, 2016, 5:35pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/8 "2016-04-27T17:35:05Z")

</div>

Further, in case it is not obvious… proxy settings need to be **switched** on/off as the VPN connection is enabled/disabled.

It would be awesome if proxy switching were automagic, but I would be OK with a manual step (e.g. an item in the Docker menu).

---

<div class="post-metadata">

**Author:** ![jjmiv](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jjmiv](https://forums.docker.com/u/jjmiv)\
**Post date:** [April 27, 2016, 7:53pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/9 "2016-04-27T19:53:03Z")

</div>

I am interested in this as well.

---

<div class="post-metadata">

**Author:** ![alexellis2](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@alexellis2](https://forums.docker.com/u/alexellis2)\
**Post date:** [April 30, 2016, 7:25pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/10 "2016-04-30T19:25:24Z")

</div>

While HTTP\_PROXY could be defined for an individual image at build time, it has to be available for the daemon too, so that images can be pulled from the HUB.

What is restricting the option from being applied to the daemon’s config in the Alpine Linux VM?

Is there any back-door to the Alpine Linux VM as of yet? i.e. as in `docker-machine ssh` of old.

---

<div class="post-metadata">

**Author:** ![flaccid](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/flaccid/32/4038_2.png) [@flaccid](https://forums.docker.com/u/flaccid)\
**Post date:** [May 2, 2016, 4:23am UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/11 "2016-05-02T04:23:15Z")

</div>

Deal breaker here. An ETA on this is appreciated.

---

<div class="post-metadata">

**Author:** ![cjlyth](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/cjlyth/32/9259_2.png) [@cjlyth](https://forums.docker.com/u/cjlyth)\
**Post date:** [May 2, 2016, 4:52pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/12 "2016-05-02T16:52:32Z")

</div>

I need this as well!

---

<div class="post-metadata">

**Author:** ![isque03](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/isque03/32/9274_2.png) [@isque03](https://forums.docker.com/u/isque03)\
**Post date:** [May 2, 2016, 10:14pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/13 "2016-05-02T22:14:20Z")

</div>

Same here. Need HTTP\_PROXY, HTTPS\_PROXY and non-proxy hosts setting when on corporate network, otherwise no proxy at all.

On the mac at least, there’s a mechanism to get inside the alpine linux vm listed here:

> **[Docker: Accelerated Container Application Development](https://www.docker.com/)**
>
> Docker is a platform designed to help developers build, share, and run container applications. We handle the tedious setup, so you can focus on the code.

> To get a console on the Linux machine, use login=root and no password after typing:  
> screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty

---

<div class="post-metadata">

**Author:** ![sundsdocker](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@sundsdocker](https://forums.docker.com/u/sundsdocker)\
**Post date:** [May 3, 2016, 2:01pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/14 "2016-05-03T14:01:33Z")

</div>

Same for me need this feature as well!

---

<div class="post-metadata">

**Author:** ![oamike](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/oamike/32/9311_2.png) [@oamike](https://forums.docker.com/u/oamike)\
**Post date:** [May 3, 2016, 4:34pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/15 "2016-05-03T16:34:19Z")

</div>

Same here - need the ability to support proxy and non-proxy switching. best if it uses the http\_proxy environment variables in terminal.

---

<div class="post-metadata">

**Author:** ![flaccid](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/flaccid/32/4038_2.png) [@flaccid](https://forums.docker.com/u/flaccid)\
**Post date:** [May 4, 2016, 1:37am UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/16 "2016-05-04T01:37:21Z")

</div>

It looks like running the daemon can only take proxy from the shell environment variables as opposed to configuration or cli options for the command ( [https://docs.docker.com/engine/reference/commandline/daemon/#daemon-configuration-file](https://docs.docker.com/engine/reference/commandline/daemon/#daemon-configuration-file) ). So we need to know how to have the daemon run with `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` env vars such as shown in step 3 of [https://docs.docker.com/engine/reference/commandline/daemon/#running-a-docker-daemon-behind-a-https-proxy](https://docs.docker.com/engine/reference/commandline/daemon/#running-a-docker-daemon-behind-a-https-proxy).

So really what I am asking is what is the service manager or equiv that runs the docker daemon and how do I modify what it runs and then restart it (assume restart via `pinata restart`) ?

---

<div class="post-metadata">

**Author:** ![flaccid](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/flaccid/32/4038_2.png) [@flaccid](https://forums.docker.com/u/flaccid)\
**Post date:** [May 4, 2016, 1:55am UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/17 "2016-05-04T01:55:00Z")

</div>

Looks like its standard alpine linux service. Probably modify `/etc/init.d/docker` and just restart the service as opposed to the VM. That might be a viable temporary solution for now.

---

<div class="post-metadata">

**Author:** ![davetucker](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/davetucker/32/9374_2.png) [@davetucker](https://forums.docker.com/u/davetucker)\
**Post date:** [May 4, 2016, 12:37pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/18 "2016-05-04T12:37:44Z")

</div>

Thanks for all the +1’s for HTTP Proxy support. We’re working on it, and hope to have it available in a future beta release!

---

<div class="post-metadata">

**Author:** ![ulucaydin](https://avatars.discourse-cdn.com/v4/letter/u/9dc877/32.png) [@ulucaydin](https://forums.docker.com/u/ulucaydin)\
**Post date:** [May 4, 2016, 9:41pm UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/19 "2016-05-04T21:41:05Z")

</div>

I can’t also pull images as I’m behind a proxy. +1 !

---

<div class="post-metadata">

**Author:** ![flaccid](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/flaccid/32/4038_2.png) [@flaccid](https://forums.docker.com/u/flaccid)\
**Post date:** [May 5, 2016, 5:07am UTC](https://forums.docker.com/t/need-to-specify-proxy-settings/8650/20 "2016-05-05T05:07:45Z")

</div>

Hi @davetucker thanks, can you provide a workaround for the time being?

[Next page](https://forums.docker.com/t/need-to-specify-proxy-settings/8650.md?page=2)
