Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 290 Bytes

MongoDB.md

File metadata and controls

7 lines (7 loc) · 290 Bytes
  1. Docker docker run -d -p 27017:27017 --name=mongo-example mongo:latest
  2. Docker exec docker exec -it container_id sh
  3. Launching shell: mongosh
  4. Display DB's show dbs
  5. Switch to database use courses
  6. show collections
  7. To list complete collection db.courses.find()