「云托管」etcd快速入门
#基于的基础镜像
from quay.io/coreos/etcd:v3.4.22
#环境变量配置
env etcd_name=etcd1 \ etcd_initial_cluster=etcd1=http://172.20.0.2:2380,etcd2=http://172.20.0.3:2380,etcd3=http://172.20.0.4:2380 \
etcd_initial_advertise_peer_urls=http://172.20.0.2:2380 \
etcd_advertise_client_urls=http://172.20.0.2:2379 \
etcd_listen_peer_urls=http://0.0.0.0:2380 \
etcd_listen_client_urls=http://0.0.0.0:2379
#运行启动命令
cmd ["sh", "-c", "/usr/local/bin/etcd"]
请后发表内容