Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hyperledger fabric 访问/opt/gopath/src/chaincode失败:lstat/opt/gopath/src/chaincode:没有这样的文件或目录_Hyperledger Fabric - Fatal编程技术网

Hyperledger fabric 访问/opt/gopath/src/chaincode失败:lstat/opt/gopath/src/chaincode:没有这样的文件或目录

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

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
      - 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