安装Hyperledger Fabric二进制文件

时间:2019-01-25 01:11:08

标签: hyperledger-fabric

我正在尝试安装Hyperledger Fabric二进制文件,但是发现一些错误提示

  

Fabric-ca和第三方二进制文件的“来自守护程序的错误响应:没有这样的图像”。

如何安装完整的软件包?


命令和错误:

$ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.1.0-rc1
bash: line 181: [: too many arguments

Installing hyperledger/fabric-samples repo

===> Checking out v1.1.0-rc1 of hyperledger/fabric-samples
HEAD is now at 9f9fc7e [FAB-8633] Correct revoked error check

Installing Hyperledger Fabric binaries

===> Downloading version x86_64-1.1.0-rc1 platform specific fabric binaries
===> Downloading:  https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/darwin-amd64-1.1.0-rc1/hyperledger-fabric-darwin-amd64-1.1.0-rc1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 28.3M  100 28.3M    0     0  3752k      0  0:00:07  0:00:07 --:--:-- 5582k
==> Done.
===> Downloading version x86_64-1.4.0 platform specific fabric-ca-client binary
===> Downloading:  https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-ca/hyperledger-fabric-ca/darwin-amd64-1.4.0/hyperledger-fabric-ca-darwin-amd64-1.4.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4806k  100 4806k    0     0  1475k      0  0:00:03  0:00:03 --:--:-- 1475k
==> Done.

Installing Hyperledger Fabric docker images

===> Pulling fabric Images
==> FABRIC IMAGE: peer

x86_64-1.1.0-rc1: Pulling from hyperledger/fabric-peer
Digest: sha256:2cd593c5821b7b30997eebd87284d766501c1c98ba0838c6478fe45bb4ae9552
Status: Image is up to date for hyperledger/fabric-peer:x86_64-1.1.0-rc1
==> FABRIC IMAGE: orderer

x86_64-1.1.0-rc1: Pulling from hyperledger/fabric-orderer
Digest: sha256:fd5549b24c1ebd1b69ac9863aafe36220d9c554066ba48f49dc4bbb6cb8d7bdb
Status: Image is up to date for hyperledger/fabric-orderer:x86_64-1.1.0-rc1
==> FABRIC IMAGE: ccenv

x86_64-1.1.0-rc1: Pulling from hyperledger/fabric-ccenv
Digest: sha256:62a9a37d3bb00fc945b9284eaf018d8a2f99eb6c80c400ac012a7d0f8b6cda92
Status: Image is up to date for hyperledger/fabric-ccenv:x86_64-1.1.0-rc1
==> FABRIC IMAGE: javaenv

x86_64-1.1.0-rc1: Pulling from hyperledger/fabric-javaenv
Digest: sha256:ec7ba4d49f0f24c2e78d715b4ce6e0ece83f1bb9f655e1fba5689c5b6a85505d
Status: Image is up to date for hyperledger/fabric-javaenv:x86_64-1.1.0-rc1
==> FABRIC IMAGE: tools

x86_64-1.1.0-rc1: Pulling from hyperledger/fabric-tools
Digest: sha256:e80b049473792fe82c18418f2b06541b84ed7b0ccf90d24f61872773ecff4a72
Status: Image is up to date for hyperledger/fabric-tools:x86_64-1.1.0-rc1
===> Pulling fabric ca Image
==> FABRIC CA IMAGE

Error response from daemon: manifest for hyperledger/fabric-ca:x86_64-1.4.0 not found
Error response from daemon: No such image: hyperledger/fabric-ca:x86_64-1.4.0
===> Pulling thirdparty docker images
==> THIRDPARTY DOCKER IMAGE: couchdb

Error response from daemon: manifest for hyperledger/fabric-couchdb:x86_64-0.4.14 not found
Error response from daemon: No such image: hyperledger/fabric-couchdb:x86_64-0.4.14
==> THIRDPARTY DOCKER IMAGE: kafka

Error response from daemon: manifest for hyperledger/fabric-kafka:x86_64-0.4.14 not found
Error response from daemon: No such image: hyperledger/fabric-kafka:x86_64-0.4.14
==> THIRDPARTY DOCKER IMAGE: zookeeper

Error response from daemon: manifest for hyperledger/fabric-zookeeper:x86_64-0.4.14 not found
Error response from daemon: No such image: hyperledger/fabric-zookeeper:x86_64-0.4.14

3 个答案:

答案 0 :(得分:0)

我一定也一直在看一些早期的文档,并且遇到了同样的问题。上面的注释中的解决方案是正确的,但是语法格式错误。我重新运行了版本1.4.0,它成功了:

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.4.0

答案 1 :(得分:0)

我也一直在寻找二进制文件。所有工具(所有版本)都可以在这里找到:

https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/

答案 2 :(得分:0)

我尝试了所有这些解决方案,但没有一个对我有用。原来,这与我的机器,cURL的版本或其他任何内容都没有关系。我的公司使用ZScaler,由于某种原因,它阻止了docker二进制文件的安装。

如果您的公司使用ZScaler或类似技术,请禁用它,然后重试,然后重新启动ZScaler。