- curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh && chmod +x install-fabric.sh
- ./install-fabric.sh --fabric-version 2.5.8 d s b
- cd fabric-samples/test-network
- ./network.sh up createChannel -c mychannel -ca
- Add bin to path
export PATH=${PWD}/../bin:$PATH
- Important : Set FABRIC_CFG_PATH
export FABRIC_CFG_PATH=${PWD}/../config/
- Run peer as Org1
export CORE_PEER_TLS_ENABLED=true \ export CORE_PEER_LOCALMSPID=Org1MSP \ export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt \ export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp \ export CORE_PEER_ADDRESS=localhost:7051
- Check Channels
peer channel list
Troubleshoot : Error in Alpine: apk add --no-cache libaio libnsl libc6-compat gcompat jq