Skip to content

Commit

Permalink
Remove all containers from previous runs
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Aug 2, 2024
1 parent 0e7c0a8 commit fdb94d2
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 fdb94d2

Please sign in to comment.