How to install chaincode in new Org in hyperledger fabric?

0 votes
I have created a new organization (org2). Now i want to install chaincode in this that I have already installed in org1. How can I do this?
Nov 22, 2018 in Blockchain by digger
• 26,600 points

1 answer to this question.

0 votes

To do this, first enter you cli bash:

docker-compose -t cli bash

and then run the following command:

CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/ CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/ peer chaincode install -n mycc -v 1.0 -p
answered Nov 22, 2018 by Omkar
• 68,480 points

Related Questions In Blockchain

+1 vote
2 answers

How to return value from a chaincode in Hyperledger Fabric?

Hyperledger Fabric supports only 2 types of ...READ MORE

answered Jun 13, 2018 in Blockchain by Perry
• 17,090 points
0 votes
1 answer

How to set chaincode path in Hyperledger Fabric?

For chaincode to properly run on your ...READ MORE

answered Jul 27, 2018 in Blockchain by digger
• 26,600 points
+1 vote
3 answers
0 votes
0 answers
0 votes
1 answer
+15 votes
5 answers
+16 votes
4 answers