Hyperledger fabric 访问/opt/gopath/src/chaincode失败:lstat/opt/gopath/src/chaincode:没有这样的文件或目录
cli的设置:Hyperledger fabric 访问/opt/gopath/src/chaincode失败:lstat/opt/gopath/src/chaincode:没有这样的文件或目录,hyperledger-fabric,Hyperledger Fabric,cli的设置: container_name: cli image: hyperledger/fabric-tools tty: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - FABRIC_LOGGING_SPEC=info - CORE_PEER_ID=cli - C
container_name: cli
image: hyperledger/fabric-tools
tty: true
environment:
- GOPATH=/opt/gopath
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- FABRIC_LOGGING_SPEC=info
- CORE_PEER_ID=cli
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
- CORE_PEER_LOCALMSPID=Org1MSP
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
- CORE_CHAINCODE_KEEPALIVE=10
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: /bin/bash
volumes:
- /var/run/:/host/var/run/
- ./../chaincode/:/opt/gopath/src/github.com/
- ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
networks:
- basic
我不知道~有人能给我一个提示吗~请对等容器没有/opt/gopath/src/chaincode路径 在cli中,“卷”: “/。/链码/:/opt/gopath/src/github.com/” 这意味着docker容器路径和项目路径之间的关系
因此,我应该将卷路径上的/opt/gopath/src/chaincode更改为/opt/gopath/src/github.com/将/opt/gopath/src/github.com/更改为/opt/gopath/src/github.com/chaincode