• Hyperledger Fabric Version: 1.2

  • Channel: mychannel

  • Peers joined to channel: org1peer0,org2peer0

  • Component running in Machine 1 : Orderer ,org1peer0,CA,CouchDB

  • Component running in Machine 2 : org2peer0,CA,CouchDB

Chaincode安装在两个同行中都取得了成功 . 但是,当实例化链代码时,docker无法在org2peer0中形成链代码容器 .

org2peer0日志

**2018-09-14 09:20:22.172 UTC [ConnProducer] NewConnection** -> ERRO 3388 Failed connecting to testf_orderer0:7050 , error: context deadline exceeded **2018-09-14 09:20:22.172 UTC [deliveryClient] connect** -> DEBU 3389 Connected to **2018-09-14 09:20:22.172 UTC [deliveryClient] connect** -> ERRO 338a Failed obtaining connection: Could not connect to any of the endpoints: [testf_orderer0:7050] **2018-09-14 09:20:22.173 UTC [deliveryClient] try** -> WARN 338b Got error: Could not connect to any of the endpoints: [testf_orderer0:7050] , at 7 attempt. Retrying in 1m4s

在链代码实例化期间CLI中没有显示错误 . 在实例化org1peer0完成后,链代码实例化命令退出

在使用org2peer0环境变量再次实例化链代码时,实例化是成功的 .