rm -rf /tmp/etcd-data.tmp && mkdir -p /tmp/etcd-data.tmp && \
#  docker rmi quay.io/coreos/etcd:v3.3.13 || true && \
  docker run -d \
  -p 2379:2379 \
  -p 2380:2380 \
  --mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \
  --name etcd-gcr-v3.3.13 \
  quay.io/coreos/etcd:v3.3.13 \
  /usr/local/bin/etcd \
  --name s1 \
  --data-dir /etcd-data \
  --listen-client-urls http://0.0.0.0:2379 \
  --advertise-client-urls http://0.0.0.0:2379 \
  --listen-peer-urls http://0.0.0.0:2380 \
  --initial-advertise-peer-urls http://0.0.0.0:2380 \
  --initial-cluster s1=http://0.0.0.0:2380 \
  --initial-cluster-token tkn \
  --initial-cluster-state new

参考

https://github.com/etcd-io/etcd/releases

相关文章:

  • 2021-06-25
  • 2022-01-13
  • 2022-12-23
  • 2021-11-28
  • 2021-06-14
  • 2021-08-31
猜你喜欢
  • 2021-07-06
  • 2021-12-06
  • 2021-07-05
  • 2021-06-04
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案