Re: Shared ccache directory between docker containers
Ragnar Rova <[email protected]> Fri, 5 Feb 2016 12:18:31 +0100
| Newsgroups | gmane.comp.compilers.ccache |
|---|---|
| Message-ID | <CAOkV6uO-rxKAGLxR8=Bzf1nKod42HVubWizNDFw7715bA8iPiw@mail.gmail.com> |
I made sure hostname is unique now. On Fri, Feb 5, 2016 at 12:05 PM, Ragnar Rova <[email protected]> wrote: > Hello list. > > Is it safe to share the ccache directory between docker containers wrt to > locking? > > 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). >