1、运行docker-compose -f docker-compose-simple.yaml up 出现下面错误
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
解决:https://github.com/docker/compose/issues/3633
执行:
vim docker-compose-simple.yaml
找到并注释 tty:true, 一共有两个地方,一个在cli,一个在chaincode
cli:
container_name: cli
image: hyperledger/fabric-tools
# tty: true
environment:
- GOPATH=/opt/gopath
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
2、运行CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode_example02 时出现下面错误
2018-06-29 13:04:49.920 UTC [shim] func1 -> ERRO 003 Received error from server, ending chaincode stream: rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport
Error starting Simple chaincode: