Created
August 16, 2017 05:03
-
-
Save xissy/9ae8b606f864db97ebdbd572c34e73a0 to your computer and use it in GitHub Desktop.
Bootstrap a consul cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --restart always --net host --name consul \ | |
consul agent -server -bootstrap-expect=3 -retry-join=10.140.1.2 -retry-join=10.140.1.3 -bind=10.140.1.1 -ui -client=10.140.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --restart always --net host --name consul \ | |
consul agent -server -retry-join=10.140.1.1 -retry-join=10.140.1.3 -bind=10.140.1.2 -ui -client=10.140.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --restart always --net host --name consul \ | |
consul agent -server -retry-join=10.140.1.1 -retry-join=10.140.1.2 -bind=10.140.1.3 -ui -client=10.140.1.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment