Created
June 27, 2019 09:38
-
-
Save mattrobertsky/ef279f90cd550975c58783c29d10576b to your computer and use it in GitHub Desktop.
how to run mongo in docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service mongod stop | |
docker run -p 27017:27017 --name mongo -d mongo:3.6 | |
mongo | |
# n.b. you may get a warning that your shell and server versions differ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment