#MongoDB
##Start
To start server:
docker run --rm -ti \
-p 27017:27017 \
-p 28017:28017 # optional web interface \
-e MONGODB_OPTS='--storageEngine wiredTiger --nojournal' \
--name mongo \
bigm/mongodb
Command line utility:
# interactive
docker exec -ti mongo mongo
# show log
docker exec mongo mongo log
##Environment variables
mongod start command (see supervisor/mongodb.conf)To provide more complicated configuration I recommend to mount /etc/mongodb.conf and pass
...
-v /mymongod.conf:/etc/mongod.conf
-e MONGODB_OPTS='--config /etc/mongod.conf'
...
##TODO
Content type
Image
Digest
sha256:cac536320…
Size
180.2 MB
Last updated
about 8 years ago
docker pull bigm/mongodb