chaincode: container_name: chaincode image: hyperledger/fabric-ccenv tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - FABRIC_LOGGING_SPEC=DEBUG - CORE_PEER_ID=example02 - CORE_PEER_ADDRESS=peer:7051 - CORE_PEER_LOCALMSPID=DEFAULT - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp working_dir: /opt/gopath/src/chaincode command: /bin/sh -c 'sleep 6000000' VOLUME: - / was / run /: / host / was / run / - ./msp:/etc/hyperledger/ msp - ./../chaincode:/opt/gopath/src/ chain code depends_on: - orderer - peer
Used above is used to mount directly to the local specific path.
View all tags
docker volume ls
View specific real address corresponding to the volume
docker volume inspect net_orderer.example.com