1、ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist
解决方案:清空容器
docker stop $(docker ps -q) & docker rm $(docker ps -aq)
然后就变成新的问题2了
2、Error: got unexpected status: FORBIDDEN -- Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
解决方案:这个问题产生的原因是之前产生的证书在docker里面,没有清干净
docker-compose -f docker-compose-cli.yaml down --volumes --remove-orphans
docker volume prune
然后就可以了,然后使用generate、up初始化和启动网络就可以了