Skip to content

Instantly share code, notes, and snippets.

@ljjjustin
Created April 5, 2018 07:56
Show Gist options
  • Select an option

  • Save ljjjustin/6b9f7bf5e23a94d8df74be014c8d23bf to your computer and use it in GitHub Desktop.

Select an option

Save ljjjustin/6b9f7bf5e23a94d8df74be014c8d23bf to your computer and use it in GitHub Desktop.
start etcd
#!/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