-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error connecting to MongoDB running in docker desktop #408
Comments
@steve1337 to clarify - did all of the other clients mongoose, MongoDB Compass or NoSQLBooster for MongoDB, also require you to add the entry to the |
@Anemy |
Created a ticket to track this, not sure on the cause off the top of my head so it'll take a bit of investigation. Could be a restriction or bug with our dns lookup we're using to connect in VSCode. |
I stumbled onto this issue myself today. Reverting this extension back to 0.8.0 resolved this for me. |
@steve1337 @albisco We've released a new version of the extension with a new connection form. Could you try creating this connection again and see if the error persists? Thanks for opening the issue, hopefully the recent changes have fixed this for you. |
Hi all,
OS: Windows 10 21H2 (OS Build 19044.1620)
VSCode: 1.65.2
MongoDB Extension: 0.9.2
Docker Desktop: 4.6.1 (76265)
I just had some issue connecting to a MongoDB server running inside Docker Desktop on Windows 10.
I kept getting the following error:
Unable to connect: getaddrinfo ENOTFOUND mongo1
I was able to fix this by adding the following entry to my
hosts
file:127.0.0.1 mongo1
I don't have issues connecting to the DB via: mongoose, MongoDB Compass or NoSQLBooster for MongoDB
I also don't have issues connecting to clusters in Atlas
My local mongoDB is setup w/ this docker-compose.yaml
Any ideas why it was necessary to add this entry to my hosts file?
The text was updated successfully, but these errors were encountered: