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,550 points
341 views

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/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/mspCORE_PEER_ADDRESS=peer0.org2.example.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/chaincode_example02/go/
answered Nov 22, 2018 by Omkar
• 67,600 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,020 points
882 views
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,550 points
536 views
+1 vote
3 answers
0 votes
0 answers
0 votes
1 answer
+15 votes
5 answers
+16 votes
4 answers