From 5b2180149f96682a77dffa29b237c24a77985a32 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Mon, 4 Nov 2024 12:49:03 -0600 Subject: [PATCH] Stop any running containers after the job (#392) --- linux-runner/templates/post-run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-runner/templates/post-run.sh b/linux-runner/templates/post-run.sh index fc06109..d4b7452 100644 --- a/linux-runner/templates/post-run.sh +++ b/linux-runner/templates/post-run.sh @@ -57,3 +57,6 @@ else echo "All delete operations completed successfully." exit 0 fi + +echo "Stopping any running docker containers" +docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)