Skip to content

Commit ef0bdbb

Browse files
Fix docker stop
1 parent 058ccec commit ef0bdbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nebula/controller.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ def stop_frontend():
631631
try:
632632
# kill all the docker containers which contain the word "nebula"
633633
commands = [
634-
"""docker kill $(docker ps -q --filter ancestor=nebula-frontend) | Out-Null""",
635-
"""docker rm $(docker ps -a -q --filter ancestor=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""",
636636
]
637637

638638
for command in commands:
@@ -645,8 +645,8 @@ def stop_frontend():
645645
else:
646646
try:
647647
commands = [
648-
"""docker kill $(docker ps -q --filter ancestor=nebula-frontend) > /dev/null 2>&1""",
649-
"""docker rm $(docker ps -a -q --filter ancestor=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""",
650650
]
651651

652652
for command in commands:

0 commit comments

Comments
 (0)