[ccache] Shared ccache directory between docker containers

Ragnar Rova ragnar.rova at gmail.com
Fri Feb 5 11:05:12 UTC 2016

Hello list.

Is it safe to share the ccache directory between docker containers wrt to

We use host mounts (i.e. not volumes) like this:

docker run -v
/var/tmp/docker-build-ccache:/var/tmp/docker-build-ccache my-compile-job

We sometimes see issues when simultaneous jobs are run.

docker storage Driver: aufs
Backing Filesystem: extfs
ccache version 3.1.10

ccache: FATAL: Failed to open
/var/tmp/docker-build-ccache/tmp/tmp.cpp_stderr.docker-host.21810: No such
file or directory

The hostname of these concurrent containers is the same. PID:s in docker
are translated (they are in their own PID namespace).

More information about the ccache mailing list