[docker] https://index.docker.io에 연결하는 동안 네트워크 시간이 초과되었습니다

웹 페이지 를 따라 가면서 Docker-Toolbox 를 지금 설치 했습니다.

나는 시작 Docker QuickStart Terminal하고 다음을 참조하십시오

                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/


docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com

bash-3.2$

그러나 내가 공연하려고 할 때 docker pull hello-world, 이것이 내가 보는 것입니다.

bash-3.2$ docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy.
bash-3.2$

뭐가 문제 야?



답변

나는 오늘 아침에 같은 문제가 있었고 다음은 나를 위해 고쳤다.

$ docker-machine restart default      # Restart the environment
$ eval $(docker-machine env default)  # Refresh your environment settings

Docker 가상 머신 자체가 이상한 상태가 된 것 같습니다. 열린 github 문제가 있습니다.


답변

Windows 10에서 도구 상자없이 Docker를 설치 했으므로 Hyper-V를 활성화해야하는 버전입니다.

Docker 버전 1.12의 경우 작업 표시 줄로 이동하여 Docker 아이콘을 마우스 오른쪽 버튼으로 클릭하고 설정-> 네트워크를 선택한 다음 DNS 서버를 고정으로 설정하여에서 Google의 DNS 서버를 사용하십시오 8.8.8.8.

해당 설정이 변경되면 마침내 작동했습니다.


답변

더 간단한 해결책은 / etc / default / docker 파일에 다음 항목을 추가하는 것입니다

http_proxy = “http : // HOST : PORT /”내보내기

도커 서비스를 다시 시작하십시오.

서비스 도커 다시 시작


답변

2016 년 8 월 업데이트

Mac 용 Docker (버전 1.12.0)를 사용하면 다음 형식의 문제가 발생했습니다.

➜  docker pull node
Using default tag: latest
Pulling repository docker.io/library/node
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/node/images. You may want to check your internet connection or if you are behind a proxy.`enter code here`

이것은 다음 DNS 항목을 포함하도록 MacBook Pro 무선 네트워크 설정을 업데이트하여 해결되었습니다. 8.8.8.8

자세한 내용은 여기에 주어진 답변을 제공 한이 (날짜) 문제 를 참조 하십시오.


답변

VBOX 5.10의 Docker VM을 사용하여 MAC (호스트)에서 Docker를 실행하면이 문제가 발생했습니다. 네트워킹 문제입니다. 간단한 수정은 브리지 된 네트워크를 VBOX 이미지에 추가하는 것입니다. VM에 포함 된 NAT 구성을 사용할 수 있지만 ssh 포트를 50375에서 2375로 변경해야합니다.


답변

sudo service docker stop
sudo service docker start

나를 위해 일한다 ..

어떻게 든 sudo service docker restart작동하지 않았다

(RHEL7)


답변

Windows 7 및 프록시가 있다고 생각되면

  1. 기본 머신에 로그온

    $ docker-machine ssh default
    
  2. 프록시 설정을 업데이트하기 위해 프로파일 업데이트

    docker@default:~$ sudo vi /var/lib/boot2docker/profile
    
  3. 아래에서 적절하게 추가

    # replace with your office's proxy environment
    export"HTTP_PROXY=http://PROXY:PORT"
    export"HTTPS_PROXY=http://PROXY:PORT"
    
    # you can add more no_proxy with your environment.
    export"NO_PROXY=192.168.99.*,*.local,169.254/16,*.example.com,192.168.59.*"
    
  4. 출구

    docker@default:~$ exit
    
  5. 도커 머신 재시작

    docker-machine restart default
    
  6. 환경 설정 업데이트

    eval $(docker-machine env default)
    

위의 단계는 약간 조정되었지만 문제 해결 가이드에 나와 있습니다 : https://docs.docker.com/toolbox/faqs/troubleshoot/#/update-varlibboot2dockerprofile-on-the-docker-machine