Tools, FAQ, Tutorials:
Types of Hyperledger Fabric Docker Containers
How many types of Hyperledger Fabric Docker Containers are there?
In a typical Hyperledger Fabric network (using goleveldb instead of couchdb), you will have 4 types containers running on the Docker Engine:
1. Orderer container - In a simple Hyperledger Fabric network, there is only one Orderer container that keeps all peer nodes in sync.
2. Peer container - There can be one or more Peer containers owned by a single organization. Peer containers are served as communication gateways to external systems
3. Chaincode container - There can be one or chaincode containers connected to a peer. Each chaincode container represents a copy of a chaincode instance running by the peer.
4. CLI container - There is only one CLI container, which serves as a CLI (command line interface) for the administrator to manage the network. The CLI container does not participate any operation of any chaincode.
If you deploy the sample network BYFN (Building Your First Network) with the default database option (goleveldb), you will see 4 types of docker containers running on a single Docker Engine:
$ byfn.sh up $ docker ps --all IMAGE COMMAND NAMES hyperledger/fabric-orderer:latest orderer orderer.example.com hyperledger/fabric-peer:latest peer node start peer0.org1.example.com hyperledger/fabric-peer:latest peer node start peer0.org2.example.com hyperledger/fabric-peer:latest peer node start peer1.org1.example.com hyperledger/fabric-peer:latest peer node start peer1.org2.example.com dev-peer0.org2.example.com-mycc-1.0-03c5â€¦ chaincode -peer.addâ€¦ dev-peer0.org2.example.com-mycc-1.0 dev-peer0.org1.example.com-mycc-1.0-04daâ€¦ chaincode -peer.addâ€¦ dev-peer0.org2.example.com-mycc-1.0 hyperledger/fabric-tools:latest /bin/bash" cli
â‡’ Watch "orderer" Container Log
â‡ Hyperledger Fabric Docker Containers
â‡‘ Hyperledger Fabric Docker Containers
â‡‘â‡‘ Hyperledger Tutorials
2020-07-07, 875👍, 0💬
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
What is Azure API Management Developer Portal? Azure API Management Developer Portal is an Azure Web...
What are the differences of Differences of evaluateTransaction() and submitTransaction() of the fabr...
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...
Why am I getting this "Docker failed to initialize" error? After installing the latest version of Do...