未安装Docker并通过传递Fabric映像下载

时间:2019-08-08 18:27:02

标签: hyperledger-fabric hyperledger

我刚刚安装了ubuntu 16.04版本,并尝试安装Hyperledger Fabric。我什至没有安装docker之类的东西。但是,当我键入“ curl -sSL URL | bash -s 1.4.0”时,通过传递Fabric映像下载,我遇到了未安装的Docker。有人可以帮我解决这个问题吗?

traveler5260@traveler5260-VirtualBox:~$ curl -sSL URL | bash -s 1.4.0

Installing hyperledger/fabric-samples repo

===> Cloning hyperledger/fabric-samples repo and checkout v1.4.0
bash: 줄 75: git: Cannot find command

Installing Hyperledger Fabric binaries

===> Downloading version 1.4.0 platform specific fabric binaries
===> Downloading:  https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/linux-amd64-1.4.0/hyperledger-fabric-linux-amd64-1.4.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 50.9M  100 50.9M    0     0  2566k      0  0:00:20  0:00:20 --:--:-- 5270k
==> Done.
===> Downloading version 1.4.2 platform specific fabric-ca-client binary
===> Downloading:  https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-ca/hyperledger-fabric-ca/linux-amd64-1.4.2/hyperledger-fabric-ca-linux-amd64-1.4.2.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6324k  100 6324k    0     0  1102k      0  0:00:05  0:00:05 --:--:-- 1379k
==> Done.

Installing Hyperledger Fabric docker images

=========================================================
Docker not installed, bypassing download of Fabric images
=========================================================
 

1 个答案:

答案 0 :(得分:1)

  

我什至没有安装docker之类的东西

这就是给您带来麻烦的原因。您在终端中运行的脚本向您的特定操作系统请求Hyperledger二进制文件。 fabric_tools,fabric_examples并下载所有Docker映像以生成新的对等方和订单(以及Chaincode环境)。

由于在您的计算机上找不到Docker,因此脚本正在跳过此映像下载。

要为您的特定Ubuntu发行版安装Docker,您可以按照以下步骤操作(如果您可以用root用户运行Docker,则可以省略用户创建): https://www.vultr.com/docs/installing-docker-ce-on-ubuntu-16-04

希望这对您有所帮助。