mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 09:35:10 +00:00
fix(test-network): ignore the error output when killing CCAAS containers (#1063)
Signed-off-by: Tony Wu <tonywu3027@me.com>
This commit is contained in:
parent
7671bdd7c6
commit
c04253d554
1 changed files with 1 additions and 2 deletions
|
|
@ -38,6 +38,7 @@ function clearContainers() {
|
||||||
infoln "Removing remaining containers"
|
infoln "Removing remaining containers"
|
||||||
${CONTAINER_CLI} rm -f $(${CONTAINER_CLI} ps -aq --filter label=service=hyperledger-fabric) 2>/dev/null || true
|
${CONTAINER_CLI} rm -f $(${CONTAINER_CLI} ps -aq --filter label=service=hyperledger-fabric) 2>/dev/null || true
|
||||||
${CONTAINER_CLI} rm -f $(${CONTAINER_CLI} ps -aq --filter name='dev-peer*') 2>/dev/null || true
|
${CONTAINER_CLI} rm -f $(${CONTAINER_CLI} ps -aq --filter name='dev-peer*') 2>/dev/null || true
|
||||||
|
${CONTAINER_CLI} kill "$(${CONTAINER_CLI} ps -q --filter name=ccaas)" 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
# Delete any images that were generated as a part of this setup
|
# Delete any images that were generated as a part of this setup
|
||||||
|
|
@ -345,8 +346,6 @@ function networkDown() {
|
||||||
clearContainers
|
clearContainers
|
||||||
#Cleanup images
|
#Cleanup images
|
||||||
removeUnwantedImages
|
removeUnwantedImages
|
||||||
#
|
|
||||||
${CONTAINER_CLI} kill $(${CONTAINER_CLI} ps -q --filter name=ccaas) || true
|
|
||||||
# remove orderer block and other channel configuration transactions and certs
|
# remove orderer block and other channel configuration transactions and certs
|
||||||
${CONTAINER_CLI} run --rm -v "$(pwd):/data" busybox sh -c 'cd /data && rm -rf system-genesis-block/*.block organizations/peerOrganizations organizations/ordererOrganizations'
|
${CONTAINER_CLI} run --rm -v "$(pwd):/data" busybox sh -c 'cd /data && rm -rf system-genesis-block/*.block organizations/peerOrganizations organizations/ordererOrganizations'
|
||||||
## remove fabric ca artifacts
|
## remove fabric ca artifacts
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue