While creating a channel in Hyperledger fabric, which of the following Docker commands will you use for updating the anchor peer for the Org2 organization?docker exec cli ./scripts/setAnchorPeer.sh 2 $CHANNEL_NAMEdocker run cli ./scripts/AnchorPeer.sh 2 $CHANNEL_NAMEdocker run cli ./set/scripts/setAnchorPeer.sh 2 $CHANNEL_NAMEdocker exec cli ./set/scripts/AnchorPeer.sh 2 $CHANNEL_NAME
Question
While creating a channel in Hyperledger fabric, which of the following Docker commands will you use for updating the anchor peer for the Org2 organization?docker exec cli ./scripts/setAnchorPeer.sh 2 CHANNEL_NAMEdocker run cli ./set/scripts/setAnchorPeer.sh 2 CHANNEL_NAME
Solution
The correct command to update the anchor peer for the Org2 organization while creating a channel in Hyperledger fabric is:
docker exec cli ./scripts/setAnchorPeer.sh 2 $CHANNEL_NAME
This command is executed in the Docker CLI container. The 'exec' command is used to run a command in a running container. The './scripts/setAnchorPeer.sh 2 $CHANNEL_NAME' part of the command is a script that sets the anchor peer for the Org2 organization in the specified channel.
Similar Questions
A user wants to create a channel in Hyperledger Terminal for providing completely separate communication mechanisms between two organizations, Org1 and Org2. He has set up the config path by exporting the required variables. He is now required to create the System Genesis Block and Channel Genesis block.Which of the following Docker commands can he use in this scenario?configtxgen -export -profile TwoOrgsApplicationGenesis -artifacts-outputBlock ./channel-artifacts/${CHANNEL_NAME}.block -channelIDconfigtxgen -p TwoOrgsApplicationGenesis -o ./channel-artifact/${CHANNEL_NAME}.block -channelID $CHANNEL_NAMEconfigtxgen -e -p TwoOrgsApplicationGenesis -getoutputBlock ./channel-artifact/${CHANNEL_ID}.block $CHANNEL_NAMEconfigtxgen -profile TwoOrgsApplicationGenesis -outputBlock./channel-artifact/${CHANNEL_NAME}.block -channelID $CHANNEL_NAME
A user has created a channel in Hyperledger Terminal between two organizations, Org1 and Org2. Now he wants to merge the organisational peer Org1 into the channel.Which of the following commands can be used here?source ./config/scripts/setOrgPeerContext.sh 1<br /> Peer channel merge -b ./channel-artifacts/mychannel.blocksource ./set/scripts/OrgPeerContext.sh 1<br /> Peer channel merge -ps ./channel-artifacts/mychannel.blocksource ./scripts/setOrgPeerContext.sh 1<br /> Peer channel join -ps ./channel-artifacts/mychannel.blocksource ./scripts/setOrgPeerContext.sh 1<br /> Peer channel join -b ./channel-artifacts/mychannel.block
A user created a Hyperledger application named Product_Fabric and set up the network for it. He now wants to create a channel named “productChannel” for it.What is the command that he can use to do so?./network.sh createChannel productChannel./network.sh create Channel productChannelThe Hyperledger always uses the default name, and the user cannot change it./network.sh Channel productChannel
Which of the following commands can be used for installing the Fabric network in Hyperledger?npm install -n fabricnpm install network.fabricnpm install Network --fabricnpm install fabric-network
While using Docker with Hyperledger Fabric, a user wants to check all the containers.Which of the following commands can he use?docker c -adocker check -adocker p -alldocker ps -a
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.