Public Repository

Last pushed: 9 months ago
Short Description
etcd on Alpine Linux (armhf)
Full Description

Available tags

  • v2.3.7
  • v3.1.0, latest

Build using Dockerfile from coreos/etcd and base image koyeung/armhf-golang:*-onbuild

Run (v2.x)

To run /go/bin/etcd, please setup the environments variables accordingly:

  • ETCD_NAME
  • ADVERTISE_HOST
  • ETCD_LISTEN_CLIENT_URLS, e.g. http://0.0.0.0:2379
  • ETCD_LISTEN_PEER_URLS, e.g. http://0.0.0.0:2380
  • ETCD_DATA_DIR, e.g. /var/lib/etcd/${ETCD_NAME}.etcd
  • ETCD_ADVERTISE_CLIENT_URLS, e.g. http://${ADVERTISE_HOST}:2379
  • ETCD_INITIAL_ADVERTISE_PEER_URLS, e.g. http://${ADVERTISE_HOST}:2380

Either one of the following:

  • ETCD_INITIAL_CLUSTER, e.g. ${ETCD_NAME}=http://${ADVERTISE_HOST}:2380
  • ETCD_DISCOVERY

Please 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

Run (v3.x)

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
Docker Pull Command
Owner
koyeung