Start/Stop Hyperledger Fabric Dev Environment

Q

How to start and stop Hyplerledger Fabric Dev Environment?

✍: FYIcenter.com

A

You can follow this tutorial to start and stop Hyplerledger Fabric on Ubuntu.

1. Make sure the Docker Engine is running:

$ ps -e | grep dockerd
17939 ?        00:39:58 dockerd

$ docker info
Containers: 6
 Running: 4
 Paused: 0
 Stopped: 2
Images: 88
Server Version: 18.09.2
...

2. Start the Hyplerledger Fabric Dev Environment:

$ cd fabric-dev-servers
$ export FABRIC_VERSION=hlfv12
$ ./startFabric.sh
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
Removing peer0.org1.example.com ... done
Removing couchdb                ... done
Removing ca.org1.example.com    ... done
Removing orderer.example.com    ... done
Removing network composer_default
Creating network "composer_default" with the default driver
Creating ca.org1.example.com ... done
Creating orderer.example.com ... done
Creating couchdb             ... done
Creating peer0.org1.example.com ... done
sleeping for 15 seconds to wait for fabric to complete start up

3. Checking Fabric containers:

$ docker ps
CONTAINER ID    IMAGE                               ... NAMES
...             hyperledger/fabric-peer:1.2.1       ... peer0.org1.example.com
...             hyperledger/fabric-couchdb:0.4.10   ... couchdb
...             hyperledger/fabric-orderer:1.2.1    ... orderer.example.com
...             hyperledger/fabric-ca:1.2.1         ... ca.org1.example.com

3. Stop the Hyplerledger Fabric Dev Environment:

$ cd fabric-dev-servers

$ ./stopFabric.sh

$ docker ps
... those 4 Fabric containers are not there any more.

 

Warning on Incompatible "npm" Version

Install Hyperledger Fabric on UBuntu

Install Hyplerledger Composer Environment

⇑⇑ Hyperledger Composer Tutorials

2019-04-25, 242👍, 0💬