[#219] Do not fail clean target if docker volume does not exist

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
nightly
Artem Ivanov 2022-09-12 15:42:50 +00:00 committed by Alex Vanin
parent 462db79537
commit eb5ba83a77
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ clean:
vols=`docker-compose -f services/$${svc}/docker-compose.yml config --volumes`
if [[ ! -z "$${vols}" ]]; then
for vol in $${vols}; do
docker volume rm "$${svc}_$${vol}" 2> /dev/null
docker volume rm -f "$${svc}_$${vol}" 2> /dev/null
done
fi
done