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

Created Volumes in Docker plugin, are not owned by daemon. #485

Closed
kanuku opened this issue Feb 10, 2015 · 4 comments
Closed

Created Volumes in Docker plugin, are not owned by daemon. #485

kanuku opened this issue Feb 10, 2015 · 4 comments

Comments

@kanuku
Copy link

kanuku commented Feb 10, 2015

When creating volumes with the Docker plugin, the created volumes are still owned by the root, instead of the deamon user.

These are the created volumes:

  • /data/demo/logs and /data/demo/configuration
09:03:55,813 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [/data/demo/logs/application.log]
09:03:55,815 |-ERROR in ch.qos.logback.core.FileAppender[FILE] - openFile(/data/demo/logs/application.log,true) call failed. java.io.FileNotFoundException: /data/demo/logs/application.log (Permission denied)
    at java.io.FileNotFoundException: /data/demo/logs/application.log (Permission denied)
    at  at java.io.FileOutputStream.open0(Native Method)
    at  at java.io.FileOutputStream.open(FileOutputStream.java:270)
    at  at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    at  at ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(ResilientFileOutputStream.java:28)
    at  at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:149)
    at  at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
    at  at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
    at  at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
    at  at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
    at  at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
    at  at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
    at  at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
    at  at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
    at  at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
    at  at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
    at  at play.api.Logger$$anonfun$configure$3.apply(Logger.scala:256)
    at  at play.api.Logger$$anonfun$configure$3.apply(Logger.scala:256)
    at  at scala.Option.foreach(Option.scala:245)
    at  at play.api.Logger$.configure(Logger.scala:256)
    at  at play.api.Application$class.$init$(Application.scala:272)
    at  at play.api.DefaultApplication.<init>(Application.scala:406)
    at  at play.core.StaticApplication.<init>(ApplicationProvider.scala:53)
    at  at play.core.server.NettyServer$.createServer(NettyServer.scala:244)
    at  at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:280)
    at  at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:275)
    at  at scala.Option.map(Option.scala:145)
    at  at play.core.server.NettyServer$.main(NettyServer.scala:275)
    at  at play.core.server.NettyServer.main(NettyServer.scala)
09:03:55,816 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
09:03:55,816 |-I

You can reproduce this issue with this demo project:

@kanuku
Copy link
Author

kanuku commented Feb 10, 2015

This is not really an issue as it can be solved by using either a script or the CMD ["chown -R daemon /data && .bin/demo"

@muuki88
Copy link
Contributor

muuki88 commented Feb 10, 2015

Thanks for the report. We will extend the functionality of the docker plugin dramatically in #453
Adding the CMD ["chown -R daemon /data && .bin/demo" will be a lot easier then.

@muuki88
Copy link
Contributor

muuki88 commented Feb 10, 2015

@kanuku , I read some topics on docker volumes. Looks like there are different approaches.

@kanuku kanuku reopened this Feb 11, 2015
@muuki88
Copy link
Contributor

muuki88 commented Feb 11, 2015

First work done in #486

@muuki88 muuki88 closed this as completed Feb 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants