美文网首页
解决方法:hyperledger fabric实例化智能合约找不

解决方法:hyperledger fabric实例化智能合约找不

作者: 忧傷無處可逃_0166 | 来源:发表于2020-04-30 15:43 被阅读0次

错误提示:API error(404) : {"message":"network xxx can not found"}

解决方法:

在base/peer-base.yaml文件中(或者docker-compose.yaml文件中,根据实际情况)

  • CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=指定你自己的网络名称

例如:
networks:
standalone:

peer0.org1.example.com:
container_name: peer0.org1.example.com
image: hyperledger/fabric-peer:$IMAGE_TAG
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
# the following setting starts chaincode containers on the same
# bridge network as the peers
# https://docs.docker.com/compose/networking/
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_standalone
- FABRIC_LOGGING_SPEC=INFO

相关文章

网友评论

      本文标题:解决方法:hyperledger fabric实例化智能合约找不

      本文链接:https://www.haomeiwen.com/subject/ebazwhtx.html