File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ function askProceed() {
90
90
# Obtain CONTAINER_IDS and remove them
91
91
# TODO Might want to make this optional - could clear other containers
92
92
function clearContainers() {
93
- CONTAINER_IDS=$( docker ps -a | awk ' ($2 ~ /dev-peer.*.mycc.* /) {print $1}' )
93
+ CONTAINER_IDS=$( docker ps -a | awk ' ($2 ~ /dev-peer.*/) {print $1}' )
94
94
if [ -z " $CONTAINER_IDS " -o " $CONTAINER_IDS " == " " ]; then
95
95
echo " ---- No containers available for deletion ----"
96
96
else
@@ -102,7 +102,7 @@ function clearContainers() {
102
102
# specifically the following images are often left behind:
103
103
# TODO list generated image naming patterns
104
104
function removeUnwantedImages() {
105
- DOCKER_IMAGE_IDS=$( docker images | awk ' ($1 ~ /dev-peer.*.mycc.* /) {print $3}' )
105
+ DOCKER_IMAGE_IDS=$( docker images | awk ' ($1 ~ /dev-peer.*/) {print $3}' )
106
106
if [ -z " $DOCKER_IMAGE_IDS " -o " $DOCKER_IMAGE_IDS " == " " ]; then
107
107
echo " ---- No images available for deletion ----"
108
108
else
You can’t perform that action at this time.
0 commit comments