mvertes / docker-alpine-mongo

MongoDB Dockerfile based on light alpine container
MIT License
189 stars 82 forks source link

How do I pass command line options to mongod #5

Closed nevf closed 7 years ago

nevf commented 8 years ago

Apologies if this is a stupid question however I can't see a way to pass command line options to mongod. ex. docker .... mvertes/alpine-mongo --smallfiles gives /run: exec: line 3: --smallfiles: not found

I am using Docker on Windows and am not a Linux guy and am new to Docker. Best I can work out is this is an issue with the run script.

mvertes commented 8 years ago

Hello, You simply need to provide the program name before the arguments: docker run <docker_options...> mvertes/alpine-mongo mongod --smallfiles

nevf commented 8 years ago

@mvertes Thanks so much, that was simple enough.