Pre-requisites (if a db needs to be restored into this container)
Copy the mongo backed up folder into /opt/mongo/ . the below command assumes the backed up folder as dmp.
To Launch: docker run -t -d -i --name mongodb -v /opt/mongo/dmp:/mongodmp mongodb:latest
To Restore the db: assuming the db is named dmp. docker exec -t -i mongodb mongorestore --db dmp mongodmp/dmp
Content type
Image
Digest
Size
204.5 MB
Last updated
over 10 years ago
docker pull pwcdigital/mongodb