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
이는 도커 가상 시스템이 이상한 상태에 빠졌기 때문인 것으로 보입니다.여기에 열린 github 문제가 있습니다.
윈도우 10에 툴박스 없이 도커를 설치했기 때문에 Hyper-V를 활성화해야 하는 버전입니다.
하는 오른쪽 단추로 ->한 후 를 1.12 에서 사용하도록 합니다. -> DNS 하여 Google 의 DNS 합니다를 합니다.8.8.8.8
.
일단 그 설정이 바뀌면, 마침내 작동했습니다.
더 간단한 솔루션은 /etc/default/docker 파일에 다음 항목을 추가하는 것입니다.
내보내기 http_proxy="http://HOST:PORT/"
그리고 도커 서비스를 다시 시작합니다.
서비스 도커 재시작
VBOX 5.10에서 도커 VM으로 MAC(호스트)에서 도커를 실행하는 데 문제가 발생했습니다.이것은 네트워킹 문제입니다.간단한 해결 방법은 VBOX 이미지에 브리지 네트워크를 추가하는 것입니다.VM에 포함된 NAT 구성을 사용할 수 있지만 ssh 포트를 50375에서 2375로 변경해야 합니다.
2016년 8월 업데이트
맥용 도커(버전 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`
는 는 MacBook Pro DNS 되었습니다 항목을 포함하도록 Pro 되었습니다.8.8.8.8
자세한 내용은 여기에 제시된 답변을 제공한 이 (일자)호를 참조하시기 바랍니다.
sudo service docker stop
sudo service docker start
저를 위해 일하죠..
든,sudo service docker restart
작동하지 않았습니다
(RHEL7)
Windows 7(윈도우 7)에서 프록시를 사용할 수 없다고 판단되는 경우
기본 시스템에 로그온
$ docker-machine ssh default
프록시 설정을 업데이트하도록 프로파일 업데이트
docker@default:~$ sudo vi /var/lib/boot2docker/profile
필요에 따라 아래에서 추가합니다.
# 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.*"
출입구
docker@default:~$ exit
도커 시스템 다시 시작
docker-machine restart default
환경 설정 업데이트
eval $(docker-machine env default)
위 단계는 약간 조정되었지만 문제 해결 가이드에 나와 있습니다. https://docs.docker.com/toolbox/faqs/troubleshoot/ #/update-varlibboot2 docker profile-on the docker-machine
저는 어제 이와 똑같은 문제에 부딪혔지만 DNS를 8.8.8.8로 수정하는 것과 같은 "인기 있는" 답변은 아무 것도 제게 맞지 않았습니다.저는 결국 이 링크를 우연히 발견했고, 그것이 효과가 있었습니다.https://github.com/docker/for-win/issues/16
윈도우즈용 도커, 윈도우즈 10 및 Hyper-V 간에 가상 네트워크 어댑터 생성 프로세스 중에 문제가 있는 것 같습니다.특히 "vEthernet(DockerNAT)" 네트워크 어댑터 2개가 필요할 수 있습니다.합니다.Get-NetAdapter "vEthernet (DockerNAT)"
(PowerShell 콘솔의 경우).결과에 어댑터가 둘 이상 표시되면 다음을 사용하여 어댑터 이름을 사용하지 않도록 설정하고 이름을 변경할 수 있습니다.
$vmNetAdapter = Get-VMNetworkAdapter -ManagementOS -SwitchName DockerNAT
Get-NetAdapter "vEthernet (DockerNAT)" | ? { $_.DeviceID -ne $vmNetAdapter.DeviceID } | Disable-NetAdapter -Confirm:$False -PassThru | Rename-NetAdapter -NewName "OLD"
그런 다음 Device Manager(장치 관리자)를 열고 비활성화된 어댑터를 삭제합니다(어떤 이유로 여기서는 이 작업을 수행할 수 있지만 Network and Sharing Center 어댑터 보기에서는 수행할 수 없음).
네트워크에 문제가 있는 것 같습니다.대리인이 있습니까?까에 연결을 수 ?docker.io
아니면 도커 사용자 에이전트를 차단합니까?
공구함을 설치하고 테스트를 해봤습니다.잘 작동합니다. 여기 있습니다.
docker is configured to use the default machine with IP 192.168.99.101
For help getting started, check out the docs at https://docs.docker.com
bash-3.2$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
535020c3e8ad: Pull complete
af340544ed62: Already exists
library/hello-world:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:d5fbd996e6562438f7ea5389d7da867fe58e04d581810e230df4cc073271ea52
Status: Downloaded newer image for hello-world:latest
Hello from Docker.
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker Hub account:
https://hub.docker.com
For more examples and ideas, visit:
https://docs.docker.com/userguide/
bash-3.2$
윈도우 10에서.systray docker 아이콘-> Settings...(설정...)를 마우스 오른쪽 버튼으로 클릭합니다.-> 휴식 -> 다시 시작 도커
boot2docker에 대해서도 이와 같은 문제가 발생하여 다음과 같이 다시 시작해 수정했습니다.
boot2docker restart
게 1.10.1
그리고 기존의 어떤 해결책도 효과가 없었습니다.다시 시작하고, 업그레이드하고, 인증서를 재생성하려고 했습니다.
저는 기계에 많은 네트워크가 생성되어 있다는 것을 알게 되었습니다.다음을 사용하여 제거한 후:
docker network ls | grep bridge | awk '{print $1}' | xargs -n1 docker network rm
DNS가 다시 작동하기 시작했습니다.
참고: 미리 정의된 네트워크에 대한 오류는 무시할 수 있습니다.
를 .HTTP_PROXY
그리고.HTTPS_PROXY
env 중에 . 기계를 만들 때 설정해야 합니다.
과 같습니다.--engine-env
:
docker-machine create -d "virtualbox" --engine-env HTTP_PROXY=http://<PROXY>:<PORT> --engine-env HTTPS_PROXY=<PROXY>:<PORT> dev
제 경우 Alpine Linux에 도커를 설치하면 다음과 같은 오류가 발생합니다.
https://index.docker.io/v1/repositories/library/ 에 연결하는 동안 네트워크 시간이 초과되었습니다.
여기서 스크립트 사용하기: https://github.com/docker/docker/blob/master/contrib/download-frozen-image-v2.sh
작동합니다. 컬을 사용하여 이미지를 다운로드한 후 이미지를 언터링하고 '도커 로드'하는 방법을 보여줍니다.
저는 8.8.8.8에서 정적 DNS의 위 방법과 ipv6를 비활성화하는 방법(프록시를 이해하지 못했습니다)을 시도해 보았는데, 그 방법들 중 어느 것도 저에게 효과가 없었습니다.
편집 9/8/2016:
저는 원래 opensh 대신 dropbear를 사용하고 있었습니다.opensh로 Alpine을 다시 설치하여 문제를 해결했습니다.
다음 문제는 꺼내는 동안 'ApplyLayer exit status 1stdout: stderr: chmod/bin/mount: permission denied' 오류였습니다.
발신인(nixaid.com/grsec-in-docker/) :
도커 이미지를 구축하기 위해 다음 grsec 보호를 비활성화해야 했습니다./etc/sysctl.d/grsec.conf를 다음과 같이 수정합니다.
kernel.grsecurity.chroot_deny_chmod = 0 kernel.grsecurity.chroot_deny_mknod = 0 kernel.grsecurity.chroot_caps = systemd 패키지/CAP_SETFCAP와 관련된 0 #
알파인의 경우는 그렇지만
/etc/sysctl.d/00-alpine.conf
재부팅
도커를 다시 시작하거나 이미지를 다시 만드는 것은 도움이 되지 않았습니다.윈도우를 재부팅했지만 소용이 없었습니다.
놀랍게도, 내가 달리는 컨테이너에 몸을 던져 넣었을 때curl https://index.docker.io/v1/repositories/library/hello-world/images
완벽하게 타당한 답변을 받았습니다.
64비트 윈도우 10 프로에서 버추얼 박스와 함께 도커 툴박스를 사용했습니다.
제 경우 해결책은 이전 도커 버전을 제거하고 VirtualBox 대신 Hyper-V를 사용하는 새로운 도커 버전을 설치하는 것이었습니다.
이제 도커가 다시 일을 합니다.
프록시 뒤에 있는 경우 아래 명령을 사용하십시오.
sudo mkdir /etc/systemd/system/docker.service.d
sudo cd /etc/systemd/system/docker.service.d
sudo vi http-proxy.conf
[Service] Environment=HTTP_PROXY=http://proxy-server-ip:port" "NO_PROXY=localhost,127.0.0.1" sudo systemctl daemon-reload sudo systemctl show --property=Environment docker sudo systemctl restart docker
최신 우분투를 가져올 수 있다면 시도해 보십시오.
sudo docker run -it ubuntu bash
이미지를찾을수없습니다ubuntu:latest
지방적으로
latest: 라이브러리에서 꺼내기/ubuntu b3e1c725a85f: 꺼내기 완료
4daad8bdde31: 당기기 완료
63fe8c0068a8:풀기완료
4a70713c436f: 당김 완료
bd842a2105a8:당김 완료
요약:
sha256:7a64bc9c8843b0a8c8b8a7e4715b7615e4e1b0d8c3c7e7a76ec8250899c397a
상태: ubuntu용 최신 이미지 다운로드: 최신
드디어 효과가 있었어요 :)
또 다른 시나리오: 도커 네트워크 어댑터가 비활성화되어 있으면 이 오류와 함께 실패합니다.어댑터의 이름은 "vEthernet(DockerNAT)" 또는 유사합니다.보아하니 이 어댑터는 정상적인 도커 당기기 동작에 어떻게든 관련이 있는 것 같습니다.다시 활성화하여 문제를 해결합니다.
도커 서비스를 위한 systemd 드롭인 디렉토리 생성:
$ sudo mkdir -p /etc/systemd/system/docker.service.d
다음 파일을 만듭니다./etc/systemd/system/docker.service.d/http-proxy.conf
이를 더하면HTTP_PROXY
환경 변수:
[서비스]
Environment="HTTP_PROXY=http://proxy.example.com:80/"
도움이 되길 바랍니다.
저는 https://docs.docker.com/network/proxy/ 을 참고하세요. http:// 또는 https:// 접두사가 없는 프록시 설정이 작동합니다. 예: PROXY:PORT
또는 / 접미사와 함께 http:// 또는 https:// 접두사 e.: http://PROXY:PORT/
Windows(윈도우)에서 작업 네트워크에서 홈 네트워크로 이동할 때 발생했습니다.
이 문제를 해결하려면 다음을 실행:
docker-machine stop
docker-machine start
docker-env
"C:\Program Files\Docker Toolbox\docker-machine.exe" env | Invoke-Expression
언급URL : https://stackoverflow.com/questions/31990757/network-timed-out-while-trying-to-connect-to-https-index-docker-io
'code' 카테고리의 다른 글
Oracle: 여러 열에 대한 빠른 NOT IN (0) | 2023.09.20 |
---|---|
판다 콘캣은 nan 값을 만들어냅니다. (0) | 2023.09.20 |
창을 사용하여 파일을 다운로드하려면 어떻게 해야 합니까?가져오라고요? (0) | 2023.09.20 |
오라클 datetime 필드 색인 (0) | 2023.09.20 |
다중 스레드 환경에서 Spring Web Client를 사용하는 올바른 방법 (0) | 2023.09.20 |