This image is mainly based on the offical MongoDB Docker image with only a few changes required to run an arbiter in the replica set.
However it doesn't directly use the offical image as the base image, it uses the original Dockerfile and docker-entrypoint.sh as base for changes instead.
Changes:
docker create --name mongo-arbiter-data -v /data/arb busybox
(Following command assumes that you use a replica set called "rs0".)
docker run --name mongo-arbiter --volumes-from=mongo-arbiter-data -p 30000:30000 -d killercentury/mongo-arbiter mongod --port 30000 --dbpath /data/arb --replSet "rs0" --smallfiles --nojournal --quiet
The "--quiet" parameter above mainly helps you to reduce the amount of logs being generated, otherwise they will grow dramatically over a few days and the instance running this container will run out of disk space at the end.
For other parameters, please refer to the offical MongoDB documentation.
Content type
Image
Digest
sha256:7c65b4148…
Size
102 MB
Last updated
over 8 years ago
docker pull killercentury/mongo-arbiter