真实系统中的 Hyperledger-fabric 设置

Hyperledger-fabric setup in real systems

我一直在研究 hyperledger-fabric node sdk v 1.0,并成功地创建了基于 dockers 的原型。但是现在我想在真实系统上实现这个架构。我还没有找到任何有助于在真实系统中设置环境的文档。我发现的只是使用 docker 设置不同的对等点和组织,然后调用事务 etc.Can 我们使用 docker 连接不同的计算机机器,然后在所有这些不同的机器上启动网络以创建私有区块链?

是的,你可以做到。为此,首先您应该定义您的网络配置。然后,您将创建网络所需的工件:密钥、通道工件、创世块……您将按照 Fabric 文档中定义的步骤进行 Build your first network。此外,您应该共享 public 密钥和创世块。

然后,在每台机器上安装 docker 个映像,如 Fabric documentation. After that, you would define the containers that you are going to set up in each machine. You do that on the docker configuration files (docker-compose.yaml, docker-base.yaml...). There, be aware of defining well the docker network configuration. You have more info about it in the answer of this question 中所述。

最后,您将打开每个容器执行 docker-compose。

我不知道我是否给了你足够的信息。如果不行,请再问。

Docker 适用于生产系统。 Docker swarm可以用来连接多台机器