简体   繁体   English

安装 Hyperledger Fabric 泊坞窗图像失败

[英]Failed Installing Hyperledger Fabric docker images

I'm trying to install Hyperledger Fabric docker images, but I keep getting the following errors after it downloads the Hyperledger Fabric Binaries.我正在尝试安装 Hyperledger Fabric docker 映像,但在下载 Hyperledger Fabric 二进制文件后,我不断收到以下错误。

I'm on a Windows 10 Home edition PC and I have downloaded all the Prerequisites like curl, Docker Toolbox, Go Programming lang and Nodejs & NPM.我使用的是 Windows 10 家庭版 PC,并且已经下载了所有先决条件,例如 curl、Docker Toolbox、Go Programming lang 和 Nodejs & NPM。 I have also installed the Visual Studio C++ Build Tools and the NPM GRPC module.我还安装了 Visual Studio C++ 构建工具和 NPM GRPC 模块。

However, after I ran the curl -sSL 'url shortened link' | bash -s但是,在我运行curl -sSL 'url shortened link' | bash -s curl -sSL 'url shortened link' | bash -s command (even the unshortened version), It doesn't seem to download the Hyperledger Fabric docker images. curl -sSL 'url shortened link' | bash -s命令(即使是未缩短的版本),它似乎没有下载 Hyperledger Fabric docker 图像。 It downloads the samples and the fabric binaries but when it gets to the Hyperledger Fabric docker images, I get the following error.它下载示例和结构二进制文件,但是当它到达 Hyperledger Fabric docker 图像时,我收到以下错误。 I would appreciate assistance on how to find a solution for this.我将不胜感激有关如何为此找到解决方案的帮助。

==> 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```

There are two methods that you can try有两种方法可以尝试

Method 1 : Uninstall docker and reinstall it from here方法1 :卸载docker并从这里重新安装

Method 2 : Go to Preferences > Daemon > Advanced and set DNS server to 8.8.8.8.方法 2 :进入Preferences > Daemon > Advanced并将 DNS 服务器设置为 8.8.8.8。

Try to remove all docker images first尝试先删除所有 docker 镜像

using使用

$ docker rmi -f $(docker images)

After that use each code in terminal one by one之后在终端中逐个使用每个代码

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

After that download samples here之后在此处下载示例

On Docker for Windows, in 'system tray', right click on 'Docker' then 'switch to Linux containers'.在 Docker for Windows 上,在“系统托盘”中,右键单击“Docker”,然后“切换到 Linux 容器”。 After this is done, in 'Docker settings', go to [Docker > Settings > Resources > File Sharing] and share 'c drive'.完成后,在“Docker 设置”中,转到 [Docker > 设置 > 资源 > 文件共享] 并共享“c 驱动器”。 Next in [Docker > Settings > Resources > Proxies] give http and httpsproxy URLS (Example: http://windows-domain-name%5Cwindows-user-name:url-encoded-password@proxy-server-or-ip:proxy-port/ ).接下来在 [Docker > Settings > Resources > Proxies] 中给出 http 和 httpsproxy URLS(例如: http://windows-domain-name%5Cwindows-user-name:url-encoded-password@proxy-server-or-ip:proxy -端口/ )。

Also you need 'Virtualization' enabled on Windows 10, not sure if you'll have it in 'Windows 10 home edition', nevertheless you can see it in [Windows Task Manager > Performance Tab > Select CPU on left panel > On the right panel below the graph > you should have virtualization: Enabled].您还需要在 Windows 10 上启用“虚拟化”,不确定您是否会在“Windows 10 家庭版”中启用它,但您可以在 [Windows 任务管理器 > 性能选项卡 > 在左侧面板上选择 CPU > 在右侧看到它图表下方的面板 > 您应该具有虚拟化:已启用]。 Also, use 'git bash' to run your commands in Windows.此外,使用“git bash”在 Windows 中运行您的命令。 You'll get this when you install 'git' I think.我想当你安装 'git' 时你会得到这个。

Windows 任务管理器

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM