etcd 启动
docker run \
-d \
--rm \
-p 2379:2379 \
-p 2380:2380 \
--name etcd-v3.3.13 \
--volume=/tmp/etcd-data:/etcd-data \
quay.io/coreos/etcd:v3.3.13 \
/usr/local/bin/etcd \
--name my-etcd \
--data-dir /etcd-data \
--listen-client-urls http://0.0.0.0:2379 \
--advertise-client-urls http://192.168.1.11:2379 \
--listen-peer-urls http://0.0.0.0:2380 \
--initial-advertise-peer-urls http://192.168.1.11:2380 \
--initial-cluster my-etcd=http://192.168.1.11:2380 \
--initial-cluster-token my-etcd-token \
--initial-cluster-state new \
--auto-compaction-retention 1 \
etcd 确认验证
![](https://oscimg.oschina.net/oscnet/4a556c9a32dea6c722486d1b640c97d2a83.jpg)