Base Docker image to run MongoDb
Run the following command to start MongoDB:
docker run -d -p 27017:27017 asgoodasnew/mongodb
If you want to enable authentication run the following command to start Mongodb:
docker run -d -p 27017:27017 -e MONGO_ADMIN=<adminuser> -e MONGO_PASSWORD=<adminpassword> asgoodasnew/mongodb
If you want to have predefined Databases the Admin user has access to, you can run:
docker run -d -p 27017:27017 -e MONGO_ADMIN=<adminuser> -e MONGO_PASSWORD=<adminpassword> -e MONGO_DBS="mydb1 mydb2 mydb3" asgoodasnew/mongodb
Content type
Image
Digest
sha256:06f9d6558…
Size
153.9 MB
Last updated
over 11 years ago
docker pull asgoodasnew/mongodb