Hyperledger Fabric CLI docker container
Lots of great questions.
the "cli" container's purpose is to run a peer process as a CLI . It is a bit confusing that the same process is both a client and a server, we may change that. Basically, when you run the
peer chaincode
commands, you are running the CLI. Thepeer node
commands are the server commands. The cli container in our samples runs a script (scripts/script.sh
) which in turn executes a series of CLI commands against the peer nodes.If you examine
scripts/script.sh
, you will find asetGlobals
function that sets a few environment variables, includingCORE_PEER_ADDRESS
. This is the peer (server) to which the peer (CLI) will communicate when installing the chaincode.Actually, after further research, this is not possible, unfortunately. The gate syntax isn't yet implemented. You would need to simulate multiple orgs for this.