CouchDB Container Used in Hyperledger Fabric

Q

What is the CouchDB container used in Hyperledger Fabric network?

✍: FYIcenter.com

A

If you are using CouchDB instead of Go LevelDB, your Hyperledger Fabric network will have another type of containers:

5. CouchDB container - There is one CouchDB container connected to a peer. Each CouchDB stores the World State for the peer.

If you deploy the sample network BYFN (Building Your First Network) with the couchdb database option, you will see 5 types of docker containers running on a single Docker Engine:

$ byfn.sh up -c mychannel -s couchdb

$ docker ps --all 

IMAGE                                      COMMAND               NAMES
                                         
hyperledger/fabric-orderer:latest          orderer               orderer.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       peer0.org1.example.com
hyperledger/fabric-peer:latest             peer node start       peer1.org2.example.com
hyperledger/fabric-couchdb                 tini -- /docker-ent…  couchdb1
hyperledger/fabric-couchdb                 tini -- /docker-ent…  couchdb3
hyperledger/fabric-couchdb                 tini -- /docker-ent…  couchdb2
hyperledger/fabric-couchdb                 tini -- /docker-ent…  couchdb0
dev-peer1.org2.example.com-mycc-1.0-ccc3…  chaincode -peer.add…  dev-peer1.org2.example.com-mycc-1.0
dev-peer0.org1.example.com-mycc-1.0-7782…  chaincode -peer.add…  dev-peer0.org1.example.com-mycc-1.0
dev-peer0.org2.example.com-mycc-1.0-6109…  chaincode -peer.add…  dev-peer0.org2.example.com-mycc-1.0
hyperledger/fabric-tools:latest            /bin/bash"            cli

Hyperledger Fabric Docker Containers with CouchDB

 

Peer and CouchDB Container Dependency

Invoke Operation on Chaincode Container

Hyperledger Fabric Docker Containers

⇑⇑ Hyperledger Tutorials

2020-07-03, 1601🔥, 1💬