Docker+Mongodb

docker search mongodb

 

docker run -d -p 2701:27017 -v /usr/mongodb/data:/data/db  -v /usr/mongodb/databack:/data/backup  --name mongo-v1.0.0   mongo  --auth

 

docker exec -it mongo-v1.0.0 mongo admin

docker exec -it mongo-v1.0.0 /bin/bash

posted @ 2018-07-18 09:49  BBJB  阅读(150)  评论(0编辑  收藏  举报