Last active
August 10, 2023 22:01
-
-
Save irfanbaigse/c2ab6f68330bc4490d12965c3f3df390 to your computer and use it in GitHub Desktop.
Small mongodb image for local use
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
#https://github.com/Ortanon/mongo | |
docker pull karimtemple/mongo | |
mkdir db && sudo chmod 777 db | |
docker run --platform linux/amd64 --name mongodb --rm -d -p 27017:27017 --user 202:202 -v $(pwd)/db:/data/db karimtemple/mongo |
** No auth
docker run --platform linux/amd64 --name mongodb --rm -d -p 27017:27017 --user 202:202 -v $(pwd)/db:/data/db karimtemple/mongo mongod --bind_ip_all --noauth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker exec -it mongodb mongo