Skip to content

peer command environment

James Taylor edited this page May 28, 2019 · 3 revisions

The peer command requires a few environment variables to work: i.e. CORE_PEER_MSPCONFIGPATH, CORE_PEER_ADDRESS, CORE_PEER_LOCALMSPID, CORE_PEER_TLS_ROOTCERT_FILE

Unfortunately these don't seem to be documented in the peer command reference but they do get mentioned in the Building Your First Network tutorial, and they also appear in the basic network docker-compose.yml file.

CORE_PEER_ADDRESS=0.0.0.0:7051 \
CORE_PEER_LOCALMSPID=Org1MSP \
CORE_PEER_MSPCONFIGPATH=/home/vagrant/test-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp \
peer ...

Clone this wiki locally