mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 17:15:10 +00:00
Merge pull request #87 from mbwhite/byfn-cc-name
[FAB-16844] Correct BYFN CC name
This commit is contained in:
commit
7b0534a70a
1 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ 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
|
# TODO Might want to make this optional - could clear other containers
|
||||||
function clearContainers() {
|
function clearContainers() {
|
||||||
CONTAINER_IDS=$(docker ps -a | awk '($2 ~ /dev-peer.*.mycc.*/) {print $1}')
|
CONTAINER_IDS=$(docker ps -a | awk '($2 ~ /dev-peer.*/) {print $1}')
|
||||||
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
|
||||||
|
|
@ -102,7 +102,7 @@ function clearContainers() {
|
||||||
# specifically the following images are often left behind:
|
# specifically the following images are often left behind:
|
||||||
# TODO list generated image naming patterns
|
# TODO list generated image naming patterns
|
||||||
function removeUnwantedImages() {
|
function removeUnwantedImages() {
|
||||||
DOCKER_IMAGE_IDS=$(docker images | awk '($1 ~ /dev-peer.*.mycc.*/) {print $3}')
|
DOCKER_IMAGE_IDS=$(docker images | awk '($1 ~ /dev-peer.*/) {print $3}')
|
||||||
if [ -z "$DOCKER_IMAGE_IDS" -o "$DOCKER_IMAGE_IDS" == " " ]; then
|
if [ -z "$DOCKER_IMAGE_IDS" -o "$DOCKER_IMAGE_IDS" == " " ]; then
|
||||||
echo "---- No images available for deletion ----"
|
echo "---- No images available for deletion ----"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue