-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Problems with connecting to etcd 2.0 that runs in a docker container #2253
Comments
@ArtfulCoder The default listen addr of 2.0 is localhost instead of 0.0.0.0. I think this might be the root cause. |
@xiang90 I did try to connect to localhost using etcdctl within the container using "docker exec", but that did not resolve it. |
I think this is because etcd 2.0 doesn't do backward compatibility well. |
etcd 2.0 uses port 2379 and 2380 (as opposed to etcd 0.4.6 which used 4001 and 7001.) |
Does it work now? |
We're still wrestling with it - can someone @coreos post a canonical I am sure I am missing something simple On Fri, Feb 13, 2015 at 11:39 AM, Yicheng Qin notifications@github.com
|
@thockin I'm running through this now. |
@thockin See the etcd docker guide for working |
I have been following this online page to run etcd in a container.
https://coreos.com/blog/Running-etcd-in-Containers/
The page talks about running etcd:0.4.6 in a container and it works.
When I tried doing this with etcd 2.0.0, the etcd service seems to start up but I am unable to connect to it via etcdctl.
(The docker images used below are hosted on dockerhub and are public)
------------- etcd 0.4.6 steps ----------------
The following command starts etcd 0.4.6 in docker, and works. I can connect to it with etcdctl.
------------- etcd 2.0.0 steps ----------------
The following command starts etcd 2.0.0 in docker, but can't connect to it via etcdctl.
cc @dchen1107 @thockin
The text was updated successfully, but these errors were encountered: