Skip to content

MongoDB Tutorial

Michael O'Connor edited this page Mar 25, 2021 · 1 revision

Docker Windows Tutorial (I don't have a Mac so I can’t do a Mac tutorial, if you use ubuntu you should already know what your doing)

Docker is an OS-level virtualization software that allows developers to easily create containers for virtually any application. In this case we will be making MongoDB containers

Install this thing
2
3

  • After installation is finished open Docker.

  • Click on Images and you should see Nothing.
    4

  • Open Command Prompt and run “docker pull mongo”
    5

Now in Docker you should be able to see the Mongo Image
6

  • Now click on the run button on the right, for the run button to appear you must hover over the image.

  • Expand the Optional Settings and set the Local Host port number. In my case, I set it to 9000 but the value does not matter.

  • Then run.
    7

  • Now you have a local MongoDB running on localhost:9000
    8

  • To check the connection you can use any DB browser.

  • This is an example from intellij. The red outline means the connection is working.
    9

Clone this wiki locally