loading...

Run MongoDB with docker

atjhoendz profile image Moh Achun Armando ・1 min read

Run the container of mongo image with name mongodb

docker run -d --name mongodb mongo

Execute shell of the container

docker exec -it mongodb sh

inside the container, just type

mongo

Discussion

pic
Editor guide
Collapse
atomzwieback profile image
Atomzwieback

Ok and why we need this exactly? A quality post looks other. Its less info than the text on the docker hub for the official image...

Collapse
atjhoendz profile image
Moh Achun Armando Author

thanks for the response sir, i just want to share about my experience how to use it also as a reminder for me and i purposely wrote it like that to show the commands only without too much explanations. This is my first post, thank you for the feedback next time i will improve it.