Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
ce0223da60
[#95] Output errors during make clean
All checks were successful
DCO action / DCO (pull_request) Successful in 1m5s
It happens that a volume may not be deleted during `make clean`.
For example, if the volume is being used by a container.
If this happens, there are no errors printed to stdout.
And old volumes may cause errors during subsequent `make up`

Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
2024-12-27 11:22:03 +03:00

View file

@ -159,7 +159,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 -f "$${svc}_$${vol}" 2> /dev/null docker volume rm -f "$${svc}_$${vol}"
done done
fi fi
done done