Error starting up a network. Nodes in different VM - Failed connecting to orderer0.tec.com:7050 , error: context deadline exceeded

前端 未结 1 1981
说谎
说谎 2020-12-11 21:05

I\'m starting up a network, which will have 3 peers and an orderer. I have 4 different Virtual Machines, one for each node.

I follow the Getting Started manual for H

相关标签:
1条回答
  • 2020-12-11 21:46

    The error was an internal error of the Peer. The peer couldn't connect to the orderer. It was because of the default configuration of the Docker containers that you create.

    When you create a docker container, you define its network. By default, the containers that you create are locaten inside the bridge network. This networks isolates the containers from other containers that are in other hosts.

    I changed this configuration to Host, and I don't get the error. It goes well.

    • I commented the default network network: byfn
    • I added the property network_mode: host to each container
    • I define the - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=host

    I should read more about docker networks, because there are other posibilities like overlay. I thin that this would be better. Also, I thin that it would be a good idea using docker-machien, but I haven't done it. There is more info about it here.

    0 讨论(0)
提交回复
热议问题