title: Docker complaining about ALL_PROXY environment variable with "proxy: unknown scheme: http"
body: <p>I'm facing the following issue with my Docker containers: When I try to <em>enter</em> the container using </p>
  
  <pre><code>docker exec -it container-id /bin/bash
  </code></pre>
  
  <p>Docker (I assume it's Docker) complains with the following message:</p>
  
  <pre><code>proxy: unknown scheme: http
  </code></pre>
  
  <p>I have traced this back to the following environment variable that's set on my host machine, since I'm using a proxy server to access the web:</p>
  
  <pre><code>ALL_PROXY=http://myproxy:8080
  </code></pre>
  
  <p>The error message seems to come from the <code>net/proxy.go</code> file, which can be found <a href="https://github.com/golang/net/blob/master/proxy/proxy.go" rel="nofollow">here</a> - the error message is issued on the last line of the file. Why would <code>http</code> not be a registered URL scheme in the Docker case?</p>
  
  <p>As soon as I <code>unset ALL_PROXY</code> on the host, I can enter the container without any issues.</p>
  
  <p>Environment:</p>
  
  <ul>
  <li>Mac OS X v10.11.5</li>
  <li>Docker v1.11.1</li>
  <li>Docker-Machine v0.7.0</li>
  </ul>
  
  <p>Any idea how to fix this (other than unsetting the variable each time)?</p>