we have some gitlab runners that builds our application on docker containers and each of my artifacts get expired after 1 day.
but after the expire date my runners volume are still there as dangling volumes
after some time my docker environment is full i have to delete them all up manually
i have created an script that cleans up volumes and it goes like this:
docker volume ls -qf dangling=true | xargs --no-run-if-empty docker volume rm
but im scared that my artifacts and npm cache gets deleted