Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volumes and permissions #1

Open
torkelo opened this issue Mar 17, 2014 · 1 comment
Open

Volumes and permissions #1

torkelo opened this issue Mar 17, 2014 · 1 comment

Comments

@torkelo
Copy link

torkelo commented Mar 17, 2014

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?

@SamSaffron
Copy link
Owner

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//issues/1
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants