@@ -631,8 +631,8 @@ def stop_frontend():
631
631
try :
632
632
# kill all the docker containers which contain the word "nebula"
633
633
commands = [
634
- """docker kill $(docker ps -q --filter name=nebula-frontend) | Out-Null""" ,
635
- """docker rm $(docker ps -a -q --filter name=nebula-frontend) | Out-Null""" ,
634
+ """docker kill $(docker ps -q --filter name=^ nebula-frontend$ ) | Out-Null""" ,
635
+ """docker rm $(docker ps -a -q --filter name=^ nebula-frontend$ ) | Out-Null""" ,
636
636
]
637
637
638
638
for command in commands :
@@ -645,8 +645,8 @@ def stop_frontend():
645
645
else :
646
646
try :
647
647
commands = [
648
- """docker kill $(docker ps -q --filter name=nebula-frontend) > /dev/null 2>&1""" ,
649
- """docker rm $(docker ps -a -q --filter name=nebula-frontend) > /dev/null 2>&1""" ,
648
+ """docker kill $(docker ps -q --filter name=^ nebula-frontend$ ) > /dev/null 2>&1""" ,
649
+ """docker rm $(docker ps -a -q --filter name=^ nebula-frontend$ ) > /dev/null 2>&1""" ,
650
650
]
651
651
652
652
for command in commands :
@@ -663,7 +663,7 @@ def stop_network():
663
663
try :
664
664
# kill all the docker containers which contain the word "nebula"
665
665
commands = [
666
- r"""docker network rm $(docker network ls | Where-Object { ($_ -split '\s+')[1] -like 'nebula-net-base' } | ForEach-Object { ($_ -split '\s+')[0] }) | Out-Null"""
666
+ r"""docker network rm $(docker network ls | Where-Object { ($_ -split '\s+')[1] -eq 'nebula-net-base' } | ForEach-Object { ($_ -split '\s+')[0] }) | Out-Null"""
667
667
]
668
668
669
669
for command in commands :
@@ -676,7 +676,7 @@ def stop_network():
676
676
else :
677
677
try :
678
678
commands = [
679
- """docker network rm $(docker network ls | grep nebula-net-base | awk '{print $1}') > /dev/null 2>&1"""
679
+ """docker network rm $(docker network ls | grep '^ nebula-net-base$' | awk '{print $1}') > /dev/null 2>&1"""
680
680
]
681
681
682
682
for command in commands :
0 commit comments