Created
April 5, 2018 07:56
-
-
Save ljjjustin/6b9f7bf5e23a94d8df74be014c8d23bf to your computer and use it in GitHub Desktop.
start etcd
This file contains hidden or 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
| #!/bin/sh | |
| NODE1=10.71.84.53 | |
| REGISTRY=quay.io/coreos/etcd | |
| docker run \ | |
| -p 2379:2379 \ | |
| -p 2380:2380 \ | |
| --name etcd ${REGISTRY}:latest \ | |
| /usr/local/bin/etcd \ | |
| --data-dir=/etcd-data --name node1 \ | |
| --initial-advertise-peer-urls http://${NODE1}:2380 --listen-peer-urls http://0.0.0.0:2380 \ | |
| --advertise-client-urls http://${NODE1}:2379 --listen-client-urls http://0.0.0.0:2379 \ | |
| --initial-cluster node1=http://${NODE1}:2380 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment