This container aim to set up a 3 members ETCD cluster:
$ sudo docker run -d --restart=always \
-net=host \
-p 4001:4001 \
-p 7001:7001 \
-p 2380:2380 \
-p 2379:2379 \
-e POS=0 \
-e IP_MEMBER=192.168.0.1 \
-e IP_MEMBER_1=192.168.0.1 \
-e IP_MEMBER_2=192.168.0.2 \
-e IP_MEMBER_3=192.168.0.3 \
-v /var/etcd:/var/etcd \
de13/rpi-etcd
$ sudo docker run -d --restart=always \
-net=host \
-p 4001:4001 \
-p 7001:7001 \
-p 2380:2380 \
-p 2379:2379 \
-e POS=1 \
-e IP_MEMBER=192.168.0.2 \
-e IP_MEMBER_1=192.168.0.1 \
-e IP_MEMBER_2=192.168.0.2 \
-e IP_MEMBER_3=192.168.0.3 \
-v /var/etcd:/var/etcd \
de13/rpi-etcd
$ sudo docker run -d --restart=always \
-net=host \
-p 4001:4001 \
-p 7001:7001 \
-p 2380:2380 \
-p 2379:2379 \
-e POS=2 \
-e IP_MEMBER=192.168.0.3 \
-e IP_MEMBER_1=192.168.0.1 \
-e IP_MEMBER_2=192.168.0.2 \
-e IP_MEMBER_3=192.168.0.3 \
-v /var/etcd:/var/etcd \
de13/rpi-etcd
see also https://github.com/saphoooo/etcd
Content type
Image
Digest
Size
158.4 MB
Last updated
about 10 years ago
docker pull de13/rpi-etcd