-
Notifications
You must be signed in to change notification settings - Fork 284
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
Consul container immediately shuts down #130
Comments
Have you tried running consul with the private IP of the VM?
|
After adding the -advertise option, I am getting "No cluster leader" error. 2016/03/31 05:29:32 [ERR] agent: failed to sync remote state: No cluster leader |
@MattAitchison This worked for me. @shantanuo This should be, as there is nothing to do yet -- as far as I understand. |
This is what it looks like following http://gliderlabs.com/registrator/latest/user/quickstart/
|
It is now working as explained in quickstart guide. The only change needed was to add advertise along with bootstrap, something like this... docker run -d --name=consul --net=host gliderlabs/consul-server -bootstrap -advertise=52.200.204.48 $ docker run -d Update: I can not use this trick in production for obvious reasons. |
This command succeeds.
This command succeeds.
Except.. when you look at the following:
This is what I get from the docker logs:
Registrator also shuts down immeditely since it can't forma connection to the consul container.
I think this is related to hashicorp/consul#725.
What I did was install Consul directly on the Ubuntu 14.04 box, and faced the same error.
Referred to the above mentioned issue on consul, these two commands work (although just running the server cannot elect a leader :).
I am new to docker/consul but I am pretty sure https://github.com/gliderlabs/docker-consul/blob/master/0.6/consul-server/Dockerfile#L3 is not something we want to muck with to add
-bind
etc to. Might be wrong though.Update:
Sidenote, I have just gone through your personal and organization github accounts. Thanks for all the contributions to the community!
The text was updated successfully, but these errors were encountered: