mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-20 16:45:09 +00:00
Avoid to clear unrelated containers
This commit is contained in:
parent
f05a132586
commit
741bf979a2
1 changed files with 1 additions and 2 deletions
|
|
@ -85,9 +85,8 @@ function askProceed () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Obtain CONTAINER_IDS and remove them
|
# Obtain CONTAINER_IDS and remove them
|
||||||
# TODO Might want to make this optional - could clear other containers
|
|
||||||
function clearContainers () {
|
function clearContainers () {
|
||||||
CONTAINER_IDS=$(docker ps -aq)
|
CONTAINER_IDS=$(docker ps --filter "name=^/dev-peer|^/peer|^/orderer|cli" -aq)
|
||||||
if [ -z "$CONTAINER_IDS" -o "$CONTAINER_IDS" == " " ]; then
|
if [ -z "$CONTAINER_IDS" -o "$CONTAINER_IDS" == " " ]; then
|
||||||
echo "---- No containers available for deletion ----"
|
echo "---- No containers available for deletion ----"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue