Error starting hyperledger fabcar sample application

后端 未结 1 1505
庸人自扰
庸人自扰 2020-12-10 08:56

I am trying to install hyperledger-fabric sample application from http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

I am getting error similar

相关标签:
1条回答
  • 2020-12-10 09:39

    Based on the comments, I think that your host system is configured to use a DNS search domain which automatically resolves unknown hostnames. You may need to modify the basic-network/docker-compose.yml and add dns_search: . as a config value for the peer:

    peer0.org1.example.com:
        container_name: peer0.org1.example.com
        image: hyperledger/fabric-peer:x86_64-1.0.0
        dns_search: .
        environment:
          - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
          - CORE_PEER_ID=peer0.org1.example.com
          - CORE_LOGGING_PEER=debug
          - CORE_CHAINCODE_LOGGING_LEVEL=DEBUG
          - CORE_PEER_LOCALMSPID=Org1MSP
          - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/
          - CORE_PEER_ADDRESS=peer0.org1.example.com:7051
          # # the following setting starts chaincode containers on the same
          # # bridge network as the peers
          # # https://docs.docker.com/compose/networking/
          - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic
          - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
          - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984
        working_dir: /opt/gopath/src/github.com/hyperledger/fabric
        command: peer node start
        # command: peer node start --peer-chaincodedev=true
        ports:
          - 7051:7051
          - 7053:7053
        volumes:
            - /var/run/:/host/var/run/
            - ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/msp/peer
            - ./crypto-config/peerOrganizations/org1.example.com/users:/etc/hyperledger/msp/users
            - ./config:/etc/hyperledger/configtx
        depends_on:
          - orderer.example.com
        networks:
          - basic
    
    0 讨论(0)
提交回复
热议问题