无法安装Hyperledger Fabric Docker映像

时间:2019-08-10 13:35:07

标签: docker hyperledger-fabric hyperledger failed-installation hyperledger-fabric-ca

我正在尝试安装Hyperledger Fabric docker映像,但是在下载Hyperledger Fabric Binaries之后,我一直收到以下错误。

我使用的是Windows 10家庭版PC,我已经下载了所有必备软件,例如curl,Docker工具箱,Go编程语言以及Nodejs和NPM。我还安装了Visual Studio C ++生成工具和NPM GRPC模块。

  

但是,在我运行curl -sSL 'url shortened link' | bash -s命令(甚至是未简化的版本)之后,似乎没有下载Hyperledger Fabric码头工人镜像。它下载了示例和Fabric二进制文件,但是当它进入Hyperledger Fabric docker映像时,出现以下错误。对于在此方面找到解决方案的帮助,我们将不胜感激。

==> FABRIC IMAGE: peer

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:48694->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-peer:1.4.0
==> FABRIC IMAGE: orderer

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:37648->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-orderer:1.4.0
==> FABRIC IMAGE: ccenv

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:56223->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-ccenv:1.4.0
==> FABRIC IMAGE: tools

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:57861->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-tools:1.4.0
==> FABRIC IMAGE: baseos

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:40361->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-baseos:1.4.0
==> FABRIC IMAGE: nodeenv

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:59697->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-nodeenv:1.4.0
==> FABRIC IMAGE: javaenv

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:36910->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-javaenv:1.4.0
===> Pulling fabric ca Image
==> FABRIC CA IMAGE

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:41696->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-ca:1.4.2
===> Pulling thirdparty docker images
==> THIRDPARTY DOCKER IMAGE: couchdb

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:47343->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-couchdb:0.4.15
==> THIRDPARTY DOCKER IMAGE: kafka

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:54708->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-kafka:0.4.15
==> THIRDPARTY DOCKER IMAGE: zookeeper

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:50988->10.0.2.3:53: i/o timeout
Error response from daemon: No such image: hyperledger/fabric-zookeeper:0.4.15

===> List out hyperledger docker images```

3 个答案:

答案 0 :(得分:0)

您可以尝试两种方法

方法1 :卸载docker,然后从here

重新安装

方法2 :转到Preferences > Daemon > Advanced,然后将DNS服务器设置为8.8.8.8。

答案 1 :(得分:0)

尝试首先删除所有docker映像

使用

$ docker rmi -f $(docker images)

之后,依次使用终端中的每个代码

sudo apt-get install curl

sudo apt-get install golang-go

export GOPATH=$HOME/go

export PATH=$PATH:$GOPATH/bin

sudo apt-get install nodejs

sudo apt-get install npm

sudo apt-get install python

sudo apt-get install docker

sudo apt-get update

apt-cache policy docker-ce

sudo apt-get install -y docker-ce

sudo apt-get install docker-compose

sudo apt-get upgrade

之后,下载示例here

答案 2 :(得分:0)

在Windows的Docker上的“系统托盘”中,右键单击“ Docker”,然后“切换到Linux容器”。完成此操作后,在“ Docker设置”中,转到[Docker>设置>资源>文件共享]并共享“ c驱动器”。在[Docker>设置>资源>代理]中,接下来提供http和httpsproxy URL(示例:http://windows-domain-name%5Cwindows-user-name:url-encoded-password@proxy-server-or-ip:proxy-port/)。

此外,您还需要在Windows 10上启用“虚拟化”,不确定是否会在“ Windows 10家庭版”中使用它,不过您仍可以在[Windows任务管理器>性能选项卡>选择左侧面板上的CPU>在图形下方的右侧面板>,您应该具有虚拟化:已启用]。另外,使用“ git bash”在Windows中运行命令。我认为安装'git'时会得到这个。

Windows-task-manager

Docker-For-Windows-Settings-1 Docker-For-Windows-Settings-2