I have an Ubuntu VM running under Virtualbox, and I'm following
these instructions to run a single node etcd in a docker container. (I know this might sound pointless, but this is just a baby step in trying to get etcd working under Kubernetes as described
here)
I'm confused on what to use for the "PUBLIC_IP" mentioned in the instructions, since this Ubuntu VM doesn't have a public IP, so I'm using the ip of the eth0 interface -- 10.0.2.15 in my case. What should I be using?
If I start a container like this:
$ export PUBLIC_IP=10.0.2.15
$ sudo docker run -d -p 8001:8001 -p 5001:5001
quay.io/coreos/etcd:v2.0.10 -peer-addr ${PUBLIC_IP}:8001 -addr ${PUBLIC_IP}:5001 -name etcd-node1
I see the following logs in the docker container:
2015/05/10 19:23:19 etcd: no data-dir provided, using default data-dir ./etcd-node1.etcd
2015/05/10 19:23:19 etcd: listening for peers on http://[::]:8001
2015/05/10 19:23:19 etcd: listening for client requests on http://[::]:5001
2015/05/10 19:23:19 etcdserver: datadir is valid for the 2.0.1 format
2015/05/10 19:23:19 etcd: stopping listening for client requests on http://[::]:5001
2015/05/10 19:23:19 etcd: stopping listening for peers on http://[::]:8001
2015/05/10 19:23:19 etcd: etcd-node1 has different advertised URLs in the cluster and advertised peer URLs list
I'm puzzled about what the "http://[::]:5001" means -- it seems like it didn't acknowledge the address I passed in.
I've also tried this:
and the
logs don't have the same error, but I can't issue curl requests:
curl: (52) Empty reply from server
Any ideas?