An Ubuntu 14.04 based image, featuring s6 process management and MongoDB.
2.7K
An image for using mongodb within Docker containers.
Yet another container for running MongoDB?
Yes, as this one is built from my Ubuntu-based Docker image that contains s6 for process management.
Aren't you only supposed to run one process per container?
Well yes and no... the following are good examples of when multiple processes within one container might be necessary:
To use this image include FROM smebberson/mongodb at the top of your Dockerfile, or simply docker run --name mongodb smebberson/mongodb.
By default, you'll probably notice MongoDB complaining about hugepage when it starts up. The s6 startup script has support to disable this, but you need to run the container in privileged mode:
docker run --privileged --name mongodb smebberson/mongodb`
This container comes setup as follows:
To customise the start up process for mongod, during your Dockerfile build process, copy across a file to /etc/s6/mongodb/run. This file will be used to start mongod. Within it, start mongod after performing any setup steps as required.
Content type
Image
Digest
sha256:d9a14d37a…
Size
155.4 MB
Last updated
over 11 years ago
docker pull smebberson/mongodb