# Day 10 - Mongo DB # 作業: 請按照本文的步驟,建立一個名為 Cupoy Test 的mongo 運行程序 ## 1. Installer MongoDB on docker請按照本文的步驟,建立一個名為 Cupoy Test 的mongo 運行程序 ### 在 docker 安裝 mongodb * 指令: docker pull mongo:latest  ## 2. Create root user 1. Check the download images  2. Activate the container and connect from port 27017  3. Enter mongo shell pi@raspberrypi:~/docker_test $ docker exec -it mongo mongo admin  ## 3. Connect from outside of the container 1. Enter bash docker exec -it mongo bash  2. Open the connection mongo --port 27017 -u "<user-name>" -p "<password>" --authenticationDatabase "admin"  
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up