Skip to content

Instantly share code, notes, and snippets.

@Danielg212
Created February 23, 2021 19:49
Show Gist options
  • Save Danielg212/1cc533a71be0a49dee1cfb61fb37dc64 to your computer and use it in GitHub Desktop.
Save Danielg212/1cc533a71be0a49dee1cfb61fb37dc64 to your computer and use it in GitHub Desktop.
setup a mongo client in docker container
docker run --name some-mongo -d mongo
brew install mongodb-community
mongo
docker ps
docker exec -it some-mongo bash
docker inspect some-mongo
mongo -h //now you have the port for the client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment