小编ecn*_*ecn的帖子

如何使用Docker设置多个主机的超级分层结构?

我在Hyperledger Fabric v1.0上工作,并希望让Getting Setup在多个主机上运行.现在,2会很棒.

这是我想要做的:

  1. Host1:启动一个订货人和两个同行
  2. Host2:启动1个对等体
  3. Host2:客户端创建一个通道(使用通过良好主机IP更新的channel_test.sh)并加入所有3个对等体
  4. Host1:调用给定示例的de deploy.js来部署链代码

我在第3步遇到了问题.我认为频道创建有效,但在我的同行日志中,我对3个对等体有相同的警告:

Remote endpoint claims to be a different peer, expected [host1 IP:8051] but got [172.17.0.4:7051]
Failed obtaining connection for 172.31.9.126:8051, PKIid:[49 55 50 ...] reason: Authentication failure
Run Code Online (Sandbox Code Playgroud)

看起来他们无法相互沟通.知道问题出在哪里?

我仍然尝试了我的第4步,但我不能部署它,除非我从config.json中删除host2:peer1.即便如此,我只能从host1:peer0查询,而不是host1:peer2.

以下是我用来设置网络的命令:

主持人1:订货人

docker run --rm -it --name orderer -p 8050:7050 
-e ORDERER_GENERAL_LEDGERTYPE=ram 
-e ORDERER_GENERAL_BATCHTIMEOUT=10s 
-e ORDERER_GENERAL_BATCHSIZE_MAXMESSAGECOUNT=10 
-e ORDERER_GENERAL_MAXWINDOWSIZE=1000 
-e ORDERER_GENERAL_ORDERERTYPE=solo 
-e ORDERER_GENERAL_LOGLEVEL=debug 
-e ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 
-e ORDERER_GENERAL_LISTENPORT=7050 
-e ORDERER_RAMLEDGER_HISTORY_SIZE=100 
sfhackfest22017/fabric-orderer:x86_64-0.7.0-snapshot-c7b3fe0 orderer
Run Code Online (Sandbox Code Playgroud)

Host1:Peer0

docker run --rm …
Run Code Online (Sandbox Code Playgroud)

hyperledger hyperledger-fabric

9
推荐指数
2
解决办法
1万
查看次数

标签 统计

hyperledger ×1

hyperledger-fabric ×1