Running etcd in Docker container Running etcd in Docker container docker docker

Running etcd in Docker container


You should configure etcd to listen on 0.0.0.0, otherwise it's listening on 127.0.0.1 which is not accessible outside the docker container

docker run \  -p 2379:2379 \  -p 4001:4001 \  --name etcd \  -v /usr/share/ca-certificates/:/etc/ssl/certs \  quay.io/coreos/etcd:v2.3.0-alpha.1 \  -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001