GitLab CI best practice & builds directory
As several of the lingering docker volumes appear to contain stuff from /builds
, we should probably take note of the following recommendation from GitLab:
GitLab Runner does not stop you from storing things inside of the Builds Directory. For example, you can store tools inside of /builds/tools that can be used during CI execution. We HIGHLY discourage this, you should never store anything inside of the Builds Directory. GitLab Runner should have total control over it and does not provide stability in such cases. If you have dependencies that are required for your CI, we recommend installing them in some other place.
Seen at https://docs.gitlab.com/runner/best_practice/#build-directory
I couldn't find more information about the reason behind this recommendation.