2017-11-07 21 views
1

Windows 용 Docker Toolbox를 회사 프록시에서 사용하는 데 문제가 있습니다.boot2docker : 호스트 경로가 없습니다.

도커 로그인 또는 도커 작동이 작동하지 않을 수 있으므로 여기 디버깅을 수행했습니다.

가상 머신 내에 일반 우분투 컴퓨터를 만들었습니다.

$ curl 10.0.2.2:8000 
$ [it retrieves the html being served] 

$ curl www.google.com 
$ curl (7) Failed to connect to www.google.com port 80: Connection refused 
$ export http_proxy=http://my-proxy:3128 
$ curl www.google.com 
$ curl: (7) Failed to connect to my-proxy:3128: No route to host 

여기 무슨 일이야 : boot2docker에

$ curl 10.0.2.2:8000 
$ [it retrieves the html being served] 

$ curl www.google.com 
$ curl (7) Failed to connect to www.google.com port 80: Connection refused 
$ export http_proxy=http://my-proxy:3128 
$ curl www.google.com 
$ [302 HTTP response from google] 

: 내 호스트 시스템에서

, 나는 포트 우분투에서 8000

에서 실행되는 간단한 서버를 시작?

+0

@ 매트 - 아니 - '어떤 경로 – dwjohnston

+0

당신은'$ (boot2docker의 shellinit)'실행 했 host' 없습니다? (https://github.com/boot2docker/boot2docker/issues/672#issuecomment-77166520 이하) – VonC

+0

@VonC - boot2docker를 명령 줄 인수로 사용하지 않아도됩니까? – dwjohnston

답변

0

좋아, 결국이 문제를 해결했습니다.

문제는 회사 프록시가 기본 docker VM 브리지와 동일한 서브넷에 존재한다는 것이 었습니다. (예 : 172.17.x.x).

빠른 해결 방법 - docker VM 내에서 변경하여 해결할 수 있습니다.

$ docker-machine ssh mydockervm 

$ ifconfig docker0 172.18.0.1 netmask 255.255.0.0