Skip to content
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

Expect mode cannot be enabled when dev mode is enabled #3255

Closed
adalga opened this issue Jul 11, 2017 · 2 comments
Closed

Expect mode cannot be enabled when dev mode is enabled #3255

adalga opened this issue Jul 11, 2017 · 2 comments

Comments

@adalga
Copy link

adalga commented Jul 11, 2017

I am trying to run consul on openshift container platform. I am using official consul docker image. I use CONSUL_LOCAL_CONFIG environment variable to get a 3 node consul cluster.

My json file like this : {
"data_dir": "/var/consul",
"log_level": "INFO",
"node_name": "node1",
"server": true,
"ui": true,
"bootstrap_expect": 3
}

I got an error like " Expect mode cannot be enabled when dev mode is enabled". How can I disable dev mode via using CONSUL_LOCAL_CONFIG variable?

@slackpad
Copy link
Contributor

Hi @akd31 you only get dev mode if you run the container with no arguments. If you do something like docker run consul agent with that config things should work fine, as it'll skip the default entrypoint from https://github.com/hashicorp/docker-consul/blob/master/0.X/Dockerfile#L71-L74. Hope that helps!

@adalga
Copy link
Author

adalga commented Jul 17, 2017

Thanks for reply. I actually knew what you mention about. However, openshift container platform doesn't let me start container with args. I figured it out though. After starting container I add args to container deployment config and restart container then it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants