docker pull下載映象時的報錯及其解決方法
使用docker pull從映象倉庫拉取映象時報錯如下:
[root@docker-registry ~]# docker pull centosUsing default tag: latest Trying to pull repository docker.io/library/centos ... Get %3Alibrary%2Fcentos%3Apull&service=registry.docker.io: net/http: TLS handshake timeout
解決辦法:
[root@docker-registry ~]# yum install bind-utils // 安裝dig工具 [root@docker-registry ~]# dig @114.114.114.114 registry-1.docker.io ; < <>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 < <>> @114.114.114.114 registry-1.docker.io ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER< <- opcode: QUERY, status: NOERROR, id: 51198 ;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;registry-1.docker.io. IN A ;; ANSWER SECTION: registry-1.docker.io. 31 IN A 34.206.236.31 registry-1.docker.io. 31 IN A 54.175.43.85 registry-1.docker.io. 31 IN A 34.205.207.96 registry-1.docker.io. 31 IN A 34.233.151.211 registry-1.docker.io. 31 IN A 52.70.175.131 registry-1.docker.io. 31 IN A 34.200.28.105 registry-1.docker.io. 31 IN A 54.165.149.19 registry-1.docker.io. 31 IN A 34.201.236.93 ;; Query time: 10 msec ;; SERVER: 114.114.114.114#53(114.114.114.114) ;; WHEN: Wed Oct 31 11:18:55 CST 2018 ;; MSG SIZE rcvd: 177
選擇上面命令執行結果中的一組解析放到本機的/etc/hosts檔案裡做對映
[root@docker-registry ~]# vim /etc/hosts 54.175.43.85 registry-1.docker.io
接著再進行docker pull映象下載操作
[root@docker-registry ~]# docker pull centos Using default tag: latest Trying to pull repository docker.io/library/centos ... latest: Pulling from docker.io/library/centos aeb7866da422: Pull complete Digest: sha256:67dad89757a55bfdfabec8abd0e22f8c7c12a1856514726470228063ed86593b Status: Downloaded newer image for docker.io/centos:latest [root@docker-registry ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/centos latest 75835a67d134 3 weeks ago 200 MB
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31559985/viewspace-2219521/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- docker pull下載映象報錯Get https://registry-1.docker.io/v2/library/centos/manifests/latest:..... timeoutDockerHTTPCentOS
- Docker官方映象加速解決pull過慢的問題Docker
- Nginx 配置 docker 映象代理服務,解決docker pull問題NginxDocker
- 下載HuggingFace模型的方法以及報錯解決模型
- 解決docker啟動映象報錯:docker: Error response from daemonDockerError
- gcr.io谷歌kubernetes相關docker映象無法下載解決方法GC谷歌Docker
- docker下載映象加速Docker
- windows下載docker映象WindowsDocker
- ubuntu apt-get install xxx報錯無法下載的解決方法Ubuntuapt-get
- docker系列-報錯以及解決指南Docker
- openwrt docker pull 拉取映象是使用 http 代理DockerHTTP
- docker無法拉取(pull)映象Error response from daemonDockerError
- 【Docker】Windows將docker下載的映象存放到其他盤DockerWindows
- docker 打包 opencv-python,libGL.so.1 報錯解決方法DockerOpenCVPython
- Maven下載jar包慢,pom報錯的解決辦法MavenJAR
- Docker 更改映象源為阿里雲國內映象 pull速度起飛Docker阿里
- CentOS7下 讓Docker pull命令使用squid做http代理拉取目標映象倉庫的映象CentOSDockerUIHTTP
- dbfread報錯ValueError錯誤解決方法Error
- hive使用報錯解決方法Hive
- git在pull時報錯You have not concluded your mergeGit
- 用命令列啟動 docker 報錯:Redirecting to /bin/systemctl start docker.service 解決方法命令列Docker
- 前端base64圖片下載報錯(已解決!!!)前端
- Larabel遷移檔案時報SQLSTATE[42000]錯誤的解決方法SQL
- docker中安裝tcpdump出錯解決方法DockerTCP
- Linux下ODBC連線HGDB報Could not SQLConnect錯解決方法LinuxSQL
- window環境下npm install node-sass報錯的解決方法NPM
- 下載docker映象並推送至阿里雲映象服務Docker阿里
- docker 怎麼下載指定版本的映象檔案Docker
- docker設定國內映象下載源Docker
- git pull報“unable to update local ref”解決方案Git
- 使用Rockey作業系統允許rancher映象報錯iptables is not available on this host解決方法作業系統AI
- 電腦開機時報錯No Bootable Device找不到索引的解決方法bootdev索引
- GitHub下載慢的原因及解決方法Github
- 修改docker映象源的方法Docker
- Docker Hello World容器執行報錯的解決辦法Docker
- pyhanlp下載失敗解決方法HanLP
- docker映象瘦身方法Docker
- Nginx報504 gateway timeout錯誤的解決方法NginxGateway