[#219] Do not fail clean target if docker volume does not exist
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
462db79537
commit
eb5ba83a77
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -135,7 +135,7 @@ clean:
|
||||||
vols=`docker-compose -f services/$${svc}/docker-compose.yml config --volumes`
|
vols=`docker-compose -f services/$${svc}/docker-compose.yml config --volumes`
|
||||||
if [[ ! -z "$${vols}" ]]; then
|
if [[ ! -z "$${vols}" ]]; then
|
||||||
for vol in $${vols}; do
|
for vol in $${vols}; do
|
||||||
docker volume rm "$${svc}_$${vol}" 2> /dev/null
|
docker volume rm -f "$${svc}_$${vol}" 2> /dev/null
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue