I have a couple of questions about the HF CLI docker container and some CLI commands.
First of all, someone can explain the purpose of this container in the context of the docker container, which runs along with other docker containers necessary for the HF ecosystem. How can I, for example, request my business network organizations, different peers and the code status for these peers?
Secondly, when I install the chain code that issues the peer chaincode install
CLI command for which this code is installed (if I have 5 peers connected to org1.example.com on which the above command will set the target chain code)?
And thirdly, if I have only one organization in the specification of my business network that processes several peers and channels when I try to create an instance of installed code that issues a command peer chaincode instantiate
to specify an approval policy ( http: // hyperledger-fabric .readthedocs.io / en / latest / endorsement-policies.html ), which has only one organization in the approval expression after the -P parameter?
Thank you for your help!
EDIT 1:
Only one update regarding 3rd answer. You have one organization that supports peers and channels when generating chain code; you can omit the support policy setting (-p). In this case, the transaction will be approved if any partner approves it.
source