I’m trying the run MongoDB Atlas locally using docker. I’m following the tutorial on mongodb.com
So, I have docker with MongoAtlas up and running. The first step was to insert the test data. That one completed successfully. Now I need to create the search index:
$> atlas deployments search indexes create
? Search Index Name searchIndex
? Database sample_mflix
? Collection movies
Error: (Unauthorized) Command createSearchIndexes requires authentication
I run this command inside the docker container. If I run it from my Mac, it just hangs and nothing happens. So I have 2 questions at this point:
- Is there a way to run this command from outside the docker container (Mac cli)?
- How can I provide authentication options. I tried
atlas auth login
, but that just seems to authenticate with my mongodb.com account, and results in the same error