[GODRIVER-878] Driver doesn't seem to work when inside docker container Created: 14/Mar/19 Updated: 11/Sep/19 Resolved: 14/Mar/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | API, Core API |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mark Kopenga | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Tested this on 2 environments and both have the same problems:
Server:
|
||
| Description |
|
For now a few days i'm trying to dockerize a new stack we are using at the company. But i'm now stuck at a point where this driver running in a docker container doesn't want to connect to a mongodb server that is also running in a docker container. Here is the error i'm getting when i want to do any interaction with the mongodb server:
This only happens when the app is inside a docker container.
This is the code I've used to test this:
How i run the database to test this:
Then to run the app i build this docker container:
And to run it i do:
When running it hangs for around 30 seconds and after that it errors with the error specified above.
I've tested this with multiple ways that work.
Some notes:
|
| Comments |
| Comment by Jeffrey Yemin [ 14/Mar/19 ] |
|
Glad you were able to work it out. |
| Comment by Mark Kopenga [ 14/Mar/19 ] |
|
Sorry for this issue, I did need to remove: ?authMechanism=SCRAM-SHA-1 after that it worked this issue can be closed |