2016-10-03 2 views
-3

Docker 컨테이너 내부에서 인터넷 연결이 필요한 명령을 실행할 수 없습니다.Docker 컨테이너 내에 인터넷이 연결되어 있지 않습니다.

작품 :

docker run ubuntu /bin/echo 'Hello world' 

가 작동하지 않습니다 : pipping

docker run ubuntu apt-get update 

Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease 
    Temporary failure resolving 'archive.ubuntu.com' 
Err:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease 
    Temporary failure resolving 'archive.ubuntu.com' 
Err:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease 
    Temporary failure resolving 'archive.ubuntu.com' 
Reading package lists... 
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com' 
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' 
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'archive.ubuntu.com' 

와 유사합니다.

저는 우분투 16.04를 사용 중이며 방화벽이나 기업 프록시 서버를 사용하지 않고 있으며 Docker를 다시 시작하려고했습니다. docker-machine 또는 boot2docker를 사용하지 않습니다.

+0

뭐죠'고정 표시기 네트워크 ls' 출력 "그것은 다리를 다시 모든 네트워크 규칙을 REINIT하는 고정 표시기를 강제로"? –

+0

귀하의 도커 호스트가 인터넷에 연결되어 있다고 가정합니다. –

+0

대답은 Docker를 완전히 다시 부팅하는 것이 었습니다. –

답변

관련 문제