- Stop basic-network


How to run script to stop the Hyperledger Fabric example network, basic-network?



You can follow this tutorial to run script to stop the Hyperledger Fabric example network, basic-network.

1. Run script to stop the basic-network:

$ cd ~/hyperledger-binaries/fabric-samples/basic-network

$ ./
# Shut down the Docker containers that might be currently running.
docker-compose -f docker-compose.yml stop
Stopping ... done
Stopping    ... done
Stopping couchdb                ... done
Stopping         ... done

2. Check the status of all Docker containers of basic-network:

$ docker ps --all

IMAGE                        STATUS         NAMES
hyperledger/fabric-peer      Exited (0)
hyperledger/fabric-orderer   Exited (0)
hyperledger/fabric-couchdb   Exited (143)   couchdb
hyperledger/fabric-ca        Exited (137)

3. Check container images:

$ docker images | grep fabric
REPOSITORY                   TAG                                CREATED             SIZE

hyperledger/fabric-orderer   2.0.0                              12 days ago         39.3MB
hyperledger/fabric-peer      2.0.0                              12 days ago         46.7MB
hyperledger/fabric-couchdb   latest                             4 weeks ago         1.5GB
hyperledger/fabric-ca        latest                             3 months ago        244MB

As you can see, those 4 containers are stopped. But they are still left on the Docker engine.

Image files for those containers are also left on the Docker engine. - Teardown basic-network - Start basic-network

basic-network Sample Network

⇑⇑ Hyperledger Tutorials

2020-04-25, 891🔥, 0💬