Does Hyperledger Fabric need Docker?

后端 未结 4 1492
粉色の甜心
粉色の甜心 2020-12-30 04:27

This may be the stupid question. Does Hyperledger Fabric require Docker for its operations.

I\'m just wondering that Docker is needed only if we need to run Fabric p

相关标签:
4条回答
  • 2020-12-30 05:09

    Just so this point does not go unnoticed, while you do not need to run the peer in a Docker container, endorsing peers (the ones which run chaincode) need access to a Docker daemon (ideally on the same host). Chaincode is currently only deployed via Docker containers.

    0 讨论(0)
  • 2020-12-30 05:11

    Yes, it is the second heading on the prerequisites page at http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html

    Docker and Docker Compose

    0 讨论(0)
  • 2020-12-30 05:12

    Starting HLF 2.0 things have changed. According to documentation, chaincode can be in 'external containers' also.

    https://hyperledger-fabric.readthedocs.io/en/release-2.0/cc_launcher.html

    0 讨论(0)
  • 2020-12-30 05:27

    The question as to whether Docker is required to run a peer, orderer, fabric-ca, etc. depends on what effort you are willing to expend.

    The Hyperledger Fabric community publishes stable, tested Docker images for X86, PowerPC and s390 (mainframe) architectures for each of its releases. These images are based on Ubuntu.

    To use the Hyperledger Fabric published release images, you need Docker and some form of orchestration support. For sample use cases, we provide some simple Docker Compose definitions. Hyperledger Cello and other provisioning platforms such as the IBM sandbox, provide kubernetes helm charts.

    It is possible to build the binaries outside of their Docker images without modification of the source. However, if you wish to build for an alternative OS (e.g. Windows, RHEL or CENTOS, etc) then you will need to modify the build process. However, it can and has been done. Suggest you reach out to the hyperledger-fabric@lists.hyperledger.org mailing list to see if any in the community that have built for alternative deployment will share their work.

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