本文介绍了Hyperledger Fabric ./byfn -m不能使网络启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照教程在构建您的第一个网络第一个网络.在fabric-samples/first-network中时,我运行命令:

I am following the tutorial to build the first network at Building your first network. When in fabric-samples/first-network, I run the command:

./byfn.sh -m generate

成功创建了两个对等点,即通道,链码,订购者创始块和密码原.但是当我运行命令时:

two peers, channel, chaincode, orderer genesis block and cryptogen are created successfully. But when I run the command:

./byfn.sh -m up

我收到错误消息行159:docker compose:找不到命令.错误!!!!无法启动网络."

I get the error "line 159: docker compose: command not found. ERROR!!! Undable to start network."

我已经制作了一个新的干净的Ubuntu 16.04,并安装了所有东西以确保一切都干净.但是我又得到了同样的错误.当我nano ./byfn.sh时,第159行如下:

I have made a new clean Ubuntu 16.04 and installed everything to make sure everything is clean. But again I get the same error. When I nano ./byfn.sh, line 159 is as follows:

    IMAGE_TAG=$IMAGETAG docker-compose -f $COMPOSE_FILE up -d 2>&1

当我跑步时:

./byfn.sh -m up -l node

我遇到了同样的错误.错误消息如下图所示:

I am getting the same error. The error message is shown in the image below:

当我跑步时:

./byfn.sh -m down

我遇到了另一个错误.这次错误出现在第235行和第236行. nano的结果如下:

I get a different error. This time the error is at lines 235 and 236; result of nano is as follows:

docker-compose -f $COMPOSE_FILE -f $COMPOSE_FILE_COUCH down --volumes

docker-compose -f $COMPOSE_FILE down –volumes

我已经添加了安装指南中所示的转到路径.提到的节点版本也兼容,因为尚不支持v9.x,我已经安装了v8.

I have added go to path as shown in installation guide. version of node is also compatible as mentioned v9.x is not supported yet, I have installed v8.

我是否应该更改./byfn.sh的159、235和236留置权?如果是这样,我应该如何更改?还是我做错了一些设置?!我感谢您的帮助.

Should I make changes to liens 159, 235 and 236 of ./byfn.sh? If so, how should I change it? Or ahve I done some setup incorrectly?! I appreciate your help.

谢谢.

推荐答案

docker-compose 是另一个必须安装的软件包(它是用于定义和运行多容器Docker应用程序的工具),而您尚未安装.
要安装docker-compose,请运行以下命令:

docker-compose is another software package that has to be installed (it is a tool for defining and running multi-container Docker applications) and you didn't installed it.
To install docker-compose run these commands:

sudo apt-get update
sudo apt-get install docker-compose

然后运行byfn文件.

Then run the byfn file.

参考: https://docs.docker.com/compose/overview/

这篇关于Hyperledger Fabric ./byfn -m不能使网络启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 19:14