Skip to content

Commit

Permalink
[FAB-7910] Clean up chaincode containers in fabric-ca
Browse files Browse the repository at this point in the history
The stop.sh script cleans up the network and service
containers from the composition file, but does not
clean up the resulting chaincode containers. This
CR removes the chaincode containers and their images
as well.

Change-Id: I06ba13486efc59b4761728891aab27535ae0366d
Signed-off-by: Latitia M Haskins <latitia.haskins@gmail.com>
  • Loading branch information
lhaskins committed Jan 25, 2018
1 parent c9836f3 commit 2c0c2c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fabric-ca/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ source $SDIR/scripts/env.sh

log "Stopping docker containers ..."
docker-compose down
# Stop chaincode containers and images as well
docker rm -f $(docker ps -aq --filter name=dev-peer)
docker rmi $(docker images | awk '$1 ~ /dev-peer/ { print $3 }')
log "Docker containers have been stopped"

0 comments on commit 2c0c2c7

Please sign in to comment.