I'm facing the following issue with my Docker containers: When I try to enter the container using
docker exec -it container-id /bin/bash
Docker (I assume it's Docker) complains with the following message:
proxy: unknown scheme: http
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:
ALL_PROXY=http://myproxy:8080
The error message seems to come from the net/proxy.go
file, which can be found here - the error message is issued on the last line of the file. Why would http
not be a registered URL scheme in the Docker case?
As soon as I unset ALL_PROXY
on the host, I can enter the container without any issues.
Environment:
- Mac OS X v10.11.5
- Docker v1.11.1
- Docker-Machine v0.7.0
Any idea how to fix this (other than unsetting the variable each time)?