Hyperledger Fabric ./byfn -m up doesn't bring the network up

纵然是瞬间 提交于 2019-12-25 00:35:48

问题


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

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

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

And when I run:

./byfn.sh -m up -l node

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

When I run:

./byfn.sh -m down

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

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.

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.

Thank you.


回答1:


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

Then run the byfn file.

Reference:https://docs.docker.com/compose/overview/



来源:https://stackoverflow.com/questions/50039938/hyperledger-fabric-byfn-m-up-doesnt-bring-the-network-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!