mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
[FAB-7910] Clean up chaincode containers in fabric-ca
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>
This commit is contained in:
parent
c9836f3131
commit
2c0c2c7459
1 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue