Skip to content

Not a bug but.. #92

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

Closed
vito-c opened this issue Apr 27, 2016 · 4 comments
Closed

Not a bug but.. #92

vito-c opened this issue Apr 27, 2016 · 4 comments
Labels
Request Request for image modification or feature

Comments

@vito-c
Copy link

vito-c commented Apr 27, 2016

It is pretty confusing that there is a line in the script that move the default configuration to mongo.conf.orig
https://github.com/docker-library/mongo/blob/master/3.0/Dockerfile#L43

It makes me think that I if want mongo to use my special configuration I just need to COPY ./mongod.conf /etc/mongo.conf and rejoice, since the /entrypoint.sh script will pick it up. Sadly this does not appear to be the case for image 3.0 I have to instead specify in the command CMD ["--config", "/etc/mongo.conf"] which is fine it just should be better documented.

@yosifkit
Copy link
Member

Since mongo does not read a config file by default, we moved it so that users would not think that it applied while still keeping an example file. I guess we need to update the readme to show how to use a config file: docker run -d -v /my/local/mongo.conf:/etc/mongo.conf mongo --config /etc/mongo.conf.

@vito-c
Copy link
Author

vito-c commented Apr 29, 2016

yes please

@yvanwangl
Copy link

yvanwangl commented Nov 23, 2017

@yosifkit I think there should be a document to show how to use config file with docker-compose config , as mongo container always be used to linked to other application container, so docker-compose is very convenience to config.

@wglambert wglambert added the Request Request for image modification or feature label Apr 24, 2018
@yosifkit
Copy link
Member

yosifkit commented May 8, 2018

Docs (finally 😮) added in docker-library/docs#1127.

@yosifkit yosifkit closed this as completed May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request Request for image modification or feature
Projects
None yet
Development

No branches or pull requests

4 participants