Skip to content

Commit

Permalink
Remove all containers from previous runs (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Sep 24, 2024
1 parent 7e9270c commit 6f061bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/ci-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ if [ ! -z "$running_containers" ]; then
fi

make cleanup

echo "Remove containers from previous runs"

previous_mini_lab_containers=$(docker container list --all --filter label=containerlab=mini-lab --quiet)

if [ ! -z "$previous_mini_lab_containers" ]; then
docker container rm --force $(docker container list --all --filter label=containerlab=mini-lab --quiet)
fi

0 comments on commit 6f061bd

Please sign in to comment.