graphite_docker icon indicating copy to clipboard operation
graphite_docker copied to clipboard

Volumes and permissions

Open torkelo opened this issue 11 years ago • 1 comments

I am a docker newbie so please forgive me if these are stupid questions.

I am unable to bind volumes from host to container for graphite, elasticdata or supervisor logs. The crux seems to be permissions. The carbon and graphite run as www-data but if I start docker like your example. The host folder will only be writable by root (and the container docker user) not by www-data.

docker run -v /data/graphite:/var/lib/graphite/storage/whisper
-d nickstenning/graphite

How do you handle permissions for the container process users to write to the host volumes?

torkelo avatar Mar 17 '14 13:03 torkelo

Its tricky business, since docker build will run as root, we could insert a step there chown the folders needed. Can you try that?

On Tue, Mar 18, 2014 at 12:05 AM, Torkel Ödegaard [email protected]:

I am a docker newbie so please forgive me if these are stupid questions.

I am unable to bind volumes from host to container for graphite, elasticdata or supervisor logs. The crux seems to be permissions. The carbon and graphite run as www-data but if I start docker like your example. The host folder will only be writable by root (and the container docker user) not by www-data.

docker run -v /data/graphite:/var/lib/graphite/storage/whisper
-d nickstenning/graphite

How do you handle permissions and the container process users and the host volumes?

Reply to this email directly or view it on GitHubhttps://github.com/SamSaffron/graphite_docker/issues/1 .

SamSaffron avatar Mar 19 '14 01:03 SamSaffron