From 0daa8bcb0491f7995cd051b7d982fdbc0a242532 Mon Sep 17 00:00:00 2001 From: susmita Date: Wed, 7 Feb 2018 16:48:03 -0500 Subject: [PATCH] [FAB-8122] Updated README.md file- balancetransfer FIX [FAB-8122] Added steps to clear containers and artifacts before starting the network manually. Change-Id: I83abd30e0080ff2395d91c76029a3527e4e69de4 Signed-off-by: susmita --- balance-transfer/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/balance-transfer/README.md b/balance-transfer/README.md index 1d4cf00b..553c67d3 100644 --- a/balance-transfer/README.md +++ b/balance-transfer/README.md @@ -267,6 +267,16 @@ curl -s -X GET \ -H "content-type: application/json" ``` +### Clean the network + +The network will still be running at this point. Before starting the network manually again, here are the commands which cleans the containers and artifacts. + +``` +docker rm -f $(docker ps -aq) +docker rmi -f $(docker images | grep dev | awk '{print $3}') +rm -rf fabric-client-kv-org[1-2] +``` + ### Network configuration considerations You have the ability to change configuration parameters by either directly editing the network-config.yaml file or provide an additional file for an alternative target network. The app uses an optional environment variable "TARGET_NETWORK" to control the configuration files to use. For example, if you deployed the target network on Amazon Web Services EC2, you can add a file "network-config-aws.yaml", and set the "TARGET_NETWORK" environment to 'aws'. The app will pick up the settings inside the "network-config-aws.yaml" file.