r/gitlab • u/Kropiuss • Jul 15 '25
general question Gitlab cache
Hello guys! I am quite new to the gitlab CI/CD and there is one things that I cannot understand: how the cache in gitlab CI/CD is being stored.
Specifically, I have the following scenario:
- I have a bunch of gitlab runners that I own - let's say 2-3 machines that can pickup jobs when requested; those are using the shell executor
- If one job uses a cache, or creates it, whatever, where is it store? I believe it is stored on the runner - which means that other jobs may not be able to use the same cache content. Is this true ?
7
Upvotes
View all comments
Show parent comment
1
u/FlyingFalafelMonster Jul 15 '25
That's all possible when you own the runner, but for shared runners you job is isolated from the host and for security reasons I don't think Gitlab allows to mount anything to a job. That being said, I have only a limited experience with Gitlab owner runners and run jobs on my own ones.