MongoDB Alpine Dockerfile
#Usage
-To run mongod:
$ docker run -d --name mongo -p 27017:27017 daewood/amongo
You can also specify the database repository where to store the data with the volume -v option:
$ docker run -d --name mongo -p 27017:27017
-v /somewhere/onmyhost/mydatabase:/data/db
daewood/amongo
To run a shell session:
$ docker exec -ti mongo sh
To use the mongo shell client:
$ docker exec -ti mongo mongo The mongo shell client can also be run its own container:
$ docker run -ti --rm --name mongoshell monogo host:port/db
windows amongo volumes:
# Create a data volume
docker create -v /data/db --name mongdb busybox true
# and use
docker run --volumes-from mongdb ...
Content type
Image
Digest
Size
52.6 MB
Last updated
over 9 years ago
docker pull daewood/amongo