Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created November 8, 2014 09:00
Show Gist options
  • Save ianblenke/3a47603ef0561e54ecb6 to your computer and use it in GitHub Desktop.
Save ianblenke/3a47603ef0561e54ecb6 to your computer and use it in GitHub Desktop.
Create a stand-alone development etcd container for a host public IP
docker run --name etcd \
--publish 4001:4001 \
--publish 7001:7001 \
--detach \
coreos/etcd:latest \
/go/bin/app -listen-client-urls http://0.0.0.0:4001 \
-advertise-client-urls http://$IP:4001 \
-listen-peer-urls http://0.0.0.0:7001 \
-initial-advertise-peer-urls http://$IP:7001 \
-data-dir=/tmp/etcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment