ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
[TOC] ## # 启动etcd(单服务) ``` docker run -d -p 4001:4001 -p 2380:2380 -p 2379:2379 \ --name etcd elcolio/etcd:latest \ -name etcd0 \ -advertise-client-urls http://localhost:2379,http://localhost:4001 \ -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \ -initial-advertise-peer-urls http://localhost:2380 \ -listen-peer-urls http://0.0.0.0:2380 \ -initial-cluster-token etcd-cluster-1 \ -initial-cluster etcd0=http://localhost:2380 \ -initial-cluster-state new ``` # 在docker中运行(集群)