-
Notifications
You must be signed in to change notification settings - Fork 138
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
Replication fails if mapped port are not 5984:5984 #17
Comments
So this is a limitation of how port mapping works. CouchDB can't see outside of the Docker container, so as far as it's concerned, it will only see itself on port 5984. What if you tell it to replicate to & from port 5984 on localhost in your curl |
@wohali It works with 5984. So if I want the mapped port to work, I should change the binding port to the external one? |
If you want to replicate to localhost, you need port 5984, yes. If
you refer to the node by its fully qualified domain name (say
machine.yourdomain.com) you can use the mapped port instead.
|
@wohali Thank you very much! If I have any question regarding the docker image of CouchDB, is there any better place than the IRC ? |
Actually, this is a Docker for Windows issue, not a CouchDB issue. See docker/for-win#204 |
Problem
I ran the docker image with the following command :
So far, everything works fine except for replication. If I try to replicate one local db to another one, it hangs for more than 2 minutes and throw an error.
Expected Behavior
It should work normally and replicate?(Or am I misunderstanding docker ports mapping?)
Current Behavior
I hangs for a long time and throw an error.
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
The text was updated successfully, but these errors were encountered: