Created
November 8, 2014 09:00
-
-
Save ianblenke/3a47603ef0561e54ecb6 to your computer and use it in GitHub Desktop.
Create a stand-alone development etcd container for a host public IP
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
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