This commit is contained in:
@@ -72,7 +72,9 @@ def main():
|
|||||||
else:
|
else:
|
||||||
task_name = task
|
task_name = task
|
||||||
|
|
||||||
|
print(f"[MAIN] Removal task name: {task_name}")
|
||||||
containers = subprocess.Popen(f'docker ps --filter "name={task_name}" -q', shell=True, stdout=subprocess.PIPE)
|
containers = subprocess.Popen(f'docker ps --filter "name={task_name}" -q', shell=True, stdout=subprocess.PIPE)
|
||||||
|
print(containers.stdout)
|
||||||
for line in containers.stdout:
|
for line in containers.stdout:
|
||||||
container_id = line.strip().decode("utf8")
|
container_id = line.strip().decode("utf8")
|
||||||
print(f"[MAIN] Found Docker container {container_id} related to {task_name}, removing..")
|
print(f"[MAIN] Found Docker container {container_id} related to {task_name}, removing..")
|
||||||
|
|||||||
Reference in New Issue
Block a user