BYFN Containers Running on Docker

Q

What BYFN (Build Your First Network) containers are running on Docker Engine?

✍: FYIcenter.com

A

Once your BYFN is deployed and executed on the Docker Engine, there will be 9 containers running on the Docker Engine:

$ cd hyperledger-binaries/fabric-samples/first-network
 
$ ./byfn.sh up
...

$ docker ps

IMAGE                                         COMMAND                  NAMES
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-peer:latest                "peer node start"        peer1.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-orderer:latest             "orderer"                orderer.example.com
hyperledger/fabric-peer:latest                "peer node start"        peer0.org2.example.com

Those 9 containers are performing different functions for the network:

  • peer0.org1.example.com - The first peer node of the first organization, which maintains a copy of the ledger.
  • peer1.org1.example.com - The second peer node of the first organization, which maintains a copy of the ledger.
  • peer0.org2.example.com - The first peer node of the second organization, which maintains a copy of the ledger.
  • peer1.org2.example.com - The second peer node of the second organization, which maintains a copy of the ledger.
  • orderer.example.com - The orderer node, which keeps all peer nodes in sync.
  • cli - A helper container, which allows you run peer processes as CLI (Command Line Interface) commands.
  • dev-peer0.org1.example.com-mycc-1.0 - The chaincode running with peer0.org1 node.
  • dev-peer0.org2.example.com-mycc-1.0 The chaincode running with peer0.org2 node.
  • dev-peer1.org2.example.com-mycc-1.0 The chaincode running with peer1.org2 node.

 

Build the BYFN Network Manually

"byfn.sh up" Error - Container Name in Use

BYFN (Build Your First Network)

⇑⇑ Hyperledger Tutorials

2020-11-11, 1124🔥, 0💬