Closed schmunk42 closed 7 years ago
On my (host) machine the proxy user has permissions. Which I assume has the same UID inside and outside.
drwxr-xr-x 18 proxy proxy 4096 Nov 30 23:46 squidcache
I think another thing is, that squid is operating directly on the mount point - maybe it could be solved by telling squid to use /var/cache/squid/tmp
or something similar.
@schmunk42 Another work around that works on OSX. Using a data volume container :
docker run -v /var/cache/squid3 --name "squidcache" tianon/true
docker run --net host --name squid --volumes-from squidcache -d jpetazzo/squid-in-a-can
The data is persisted in the container "squidcache"
One can see what's persisted with this command :
docker run --volumes-from squidcache --rm -ti busybox
Once in the shell you can go to /var/cache/squid3
I was trying to mount a cache volume into my container, but got this error:
The directories get permissions of my user (on my host) and docker can't create the subdirectories...
Running Docker 1.3.1 on OS X 10.10.
[addon] I was able to get it running on OS X (via docker host vm) by manually creating
/var/cache/squid3/00
to/var/cache/squid3/0F
and runningchmod -R 777 path/to/volume
.