Skip to content

Commit

Permalink
delete volumes if any where created
Browse files Browse the repository at this point in the history
  • Loading branch information
rotty3000 committed Mar 28, 2023
1 parent 1c18365 commit ff2caa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/functional/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,8 @@ startLocaldev() {

stopLocaldev() {
($CLI rt delete -v | sed 's/^/ localdev stop │ /')
(docker volume rm $(docker volume ls -q --filter dangling=true) | sed 's/^/ localdev stop │ /')

for i in $(docker volume ls -q --filter dangling=true); do
docker volume rm $i | sed 's/^/ localdev stop │ /'
done
}

0 comments on commit ff2caa2

Please sign in to comment.