blockchain - 设置 Hyperledger Fabric

标签 blockchain hyperledger hyperledger-fabric

我尝试设置 Hyperledger Fabric 项目。不幸的是,当我调用 vargant up 时,我得到:

Bringing machine 'default' up with 'virtualbox' provider...
 ==> default: Box 'hyperledger/fabric-baseimage' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: 0.0.10
The box 'hyperledger/fabric-baseimage' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/hyperledger/fabric-baseimage"]
Error: SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

我尝试使用 docker 镜像 https://hub.docker.com/r/hyperledger/fabric-baseimage/但是运行命令没有做任何事情

我想启动 Fabric Blockchain,尝试管理系统,部署合约并发起一些测试交易。谁能帮我,如何启动 Fabric?

谢谢

最佳答案

此处列出的错误非常清楚,并提供了指向解决方案的链接。 Vagrant 无法下载图像,因为本地 CA 没有携带颁发 HashiCorp 服务器证书的 CA 的证书。

如果您对简单地运行 Hyperledger Fabric 和开发/部署链代码以及开发区 block 链应用程序感兴趣,您可以简单地运行 docker-compose up 并使用 Docker 使用以下 docker-compose.yml 定义对于 Mac 或 Windows(测试版):

vp:
  image: hyperledger/fabric-peer
  ports:
  - "5000:5000"
  environment:
  - CORE_PEER_ADDRESSAUTODETECT=true
  - CORE_VM_ENDPOINT=http://127.0.0.1:2375
  - CORE_LOGGING_LEVEL=DEBUG
  command: peer node start
membersrvc:
  image: hyperledger/fabric-membersrvc
  command: membersrvc

让 Fabric 在笔记本电脑上运行的基于 Vagrant 的开发环境方法实际上更面向希望帮助开发 Hyperledger Fabric 项目的开发人员,而不是那些只想使用该平台开发应用程序的开发人员。

关于blockchain - 设置 Hyperledger Fabric,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37568680/

相关文章:

docker - Hyperledger Fabric对等容器未启动日志无法与Couchdb连接

docker - 无法使用hurley Hyperledger Fabric安装Chaincode

hyperledger-fabric - Hyperledger Fabric 和 Hyperledger Sawtooth 中的证书颁发机构

hyperledger - 什么是 super 账本?

java - 网络发现 Hyperledger 结构

blockchain - BigChainDB - 那到底是什么?

blockchain - 在 Corda 中,哪些数据会发送到非验证公证服务?

node.js - 无法发现错误? : NodeJS/Hyperledger

performance - Hyperledger Fabric可扩展性

blockchain - 自定义区 block 链数据结构