export HOSTIP=127.0.0.1
k-v服务器docker run -d -v /etc/ssl/certs:/etc/ssl/certs -p 4001:4001 -p 2380:2380 -p 2379:2379
--name etcd ystyle/etcd
-name etcd0
-advertise-client-urls http://${HOSTIP}:2379,http://${HOSTIP}:4001
-listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001
-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
7.3 MB
Last updated
about 9 years ago
docker pull cosw/etcd