After some runs the runner is reporting āNo space left on deviceā. Checking the VM is see that the /var folder is full. Most data is stored in /usr and inside the docker volumes folder. How I can avoid this spamming of vƶumes?
Iām also seeing this, but Iām quite sure Iāve seen it for non-gitlab volumes (on another machine) as well, so the root-cause might be an docker issue.
In my case Iāve verified that the volumes are not in use by any running (or stopped) containers using docker ps -a --filter 'volume=VOLUMENAME
The volumes are also ādanglingā according to docker volume ls -qf dangling=true
So, perhaps you need to review the way how you store/upload cache (maybe itās too granulated). Perhaps you need a bit more storage on that VM (e.g. I have 256GB on my Runners, which seems to be perfectly fine for around 10ish projects).
In any case, make sure to maintain your GitLab & Runners regularly. docker system prune with a few different options is a good start. You can also clear Runner caches easier from UI on a Project level (CI/CD > Pipelines > Clear Runner Caches (top right corner). But normally 1x a month I just prune all dangling images and all volumes from the Runner.