v2.3.7v3.1.0, latestBuild using Dockerfile from coreos/etcd and base image koyeung/armhf-golang:*-onbuild
To run /go/bin/etcd, please setup the environments variables accordingly:
ETCD_NAMEADVERTISE_HOSTETCD_LISTEN_CLIENT_URLS, e.g. http://0.0.0.0:2379ETCD_LISTEN_PEER_URLS, e.g. http://0.0.0.0:2380ETCD_DATA_DIR, e.g. /var/lib/etcd/${ETCD_NAME}.etcdETCD_ADVERTISE_CLIENT_URLS, e.g. http://${ADVERTISE_HOST}:2379ETCD_INITIAL_ADVERTISE_PEER_URLS, e.g. http://${ADVERTISE_HOST}:2380Either one of the following:
ETCD_INITIAL_CLUSTER, e.g. ${ETCD_NAME}=http://${ADVERTISE_HOST}:2380ETCD_DISCOVERYPlease read Configuration Flags for details.
Alternatively, run with command line arguments (see also Running etcd under Docker)
export HostIP="192.168.12.50"
export ETCD_VERSION=v2.3.7
docker run --rm -p 2379:2379 -p 2380:2380 \
--name etcd koyeung/armhf-etcd:${ETCD_VERSION} \
etcd \
--name etcd0 \
--advertise-client-urls http://${HostIP}:2379 \
--listen-client-urls http://0.0.0.0:2379 \
--initial-advertise-peer-urls http://${HostIP}:2380 \
--listen-peer-urls http://0.0.0.0:2380 \
--initial-cluster-token etcd-cluster-1 \
--initial-cluster etcd0=http://${HostIP}:2380 \
--initial-cluster-state new
Please change the command line to:
export HostIP="192.168.12.50"
export ETCD_VERSION=v3.1.0
docker run --rm -p 2379:2379 -p 2380:2380 \
--name etcd koyeung/armhf-etcd:${ETCD_VERSION} \
--name etcd0 \
--advertise-client-urls http://${HostIP}:2379 \
--listen-client-urls http://0.0.0.0:2379 \
--initial-advertise-peer-urls http://${HostIP}:2380 \
--listen-peer-urls http://0.0.0.0:2380 \
--initial-cluster-token etcd-cluster-1 \
--initial-cluster etcd0=http://${HostIP}:2380 \
--initial-cluster-state new
Content type
Image
Digest
Size
92.4 MB
Last updated
over 9 years ago
docker pull koyeung/armhf-etcd