0 votes
1 view
in Blockchain by (4.1k points)

I try to setup the Hyperledger Fabric project. Unfortunately, when I invoke vargant up I get:

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.

I tried to use docker image https://hub.docker.com/r/hyperledger/fabric-baseimage/ but run command didn't do anything

I would like to start Fabric Blockchain, try management system, deploy contract and initiate some test transactions. Could anyone help me, how to start Fabric?

Thanks

1 Answer

0 votes
by (14.4k points)

Vagrant is not able to download the docker image as the local CA is not carrying its certificate which was used to issue the HashiCorp server's certificate.

If you want to run Hyperledger Fabric and eventually deploy chaincode to develop a blockchain application, you can run docker-compose up with the following docker-compose.yml definition:

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

The Vagrant-based development environment approach for getting the locally running Fabric is more oriented towards developers. 

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...