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

docker mongodb replica keyfile Permission denied #13

Closed
Jaware opened this issue Jan 5, 2015 · 4 comments
Closed

docker mongodb replica keyfile Permission denied #13

Jaware opened this issue Jan 5, 2015 · 4 comments

Comments

@Jaware
Copy link

@Jaware Jaware commented Jan 5, 2015

i use keyfile as docker mongodb replica security tool, however when run with -v /data/mongo/keyfile:/data/keyfile,it showed keyfile Permission denied ,the keyfile is 600(mongo need)

@yosifkit

This comment has been minimized.

Copy link
Member

@yosifkit yosifkit commented Jan 5, 2015

The permission mask should be fine, but the file will need to be owned by the mongodb user in the container (uid=999(mongodb) gid=999(mongodb)).

@Jaware

This comment has been minimized.

Copy link
Author

@Jaware Jaware commented Jan 6, 2015

sorry ,i do not know how to do that,can you explain a little more clear

@yosifkit

This comment has been minimized.

Copy link
Member

@yosifkit yosifkit commented Jan 6, 2015

You'll just need to chown 999:999 keyfile before you run the docker container (you probably need sudo in there).

@Jaware Jaware closed this Feb 7, 2015
@Jaware

This comment has been minimized.

Copy link
Author

@Jaware Jaware commented Feb 7, 2015

thanks,sorry too busy these days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.