我尝试设置 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 并开发/部署链代码以及开发区块链应用程序,您可以简单地使用适用于 Mac 或 Windows 的 Docker(测试版)运行具有以下 docker-compose.yml 定义的
docker-compose up
:
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 项目的开发人员,而不是那些只想使用该平台开发应用程序的开发人员。
我建议您重新安装。
尝试以下说明: http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html
我使用了来自 GitHub 的 hyperledger Fabric 分支 v0.6,而不是 Gerrit 一个(在“克隆 Fabric 项目”步骤中): git clone -b v0.6 https://github.com/hyperledger/fabric.git
当虚拟机配置最终完成时,您将拥有一个可用于测试链代码的环境。
环境完成后,您还应该查看 GitHub IBM-Blockchain Marbles 应用程序。
希望这对你有用,祝你好运。
打开此链接:https://atlas.hashicorp.com/hyperledger/boxes/fabric-baseimage
使用下面的命令:
vagrant init hyperledger/fabric-baseimage; vagrant up --provider virtualbox