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.
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