Well that’s a learning; in Dockerfiles you can have steps that look like:
RUN --mount=type=cache,id=cargo,target=/cargo do whatever
RUN --mount=type=cache for example from the docs…
And it’ll only mount the cache folder for that step.. turns out if you do that on a mac, the underlying filesystem of the cache thing is a mac filesystem, so shit gets BROKEN AND WEIRD when the container’s Linux and the programs expect Linux filesystem things.
[Read More]

