摘要:
docker run --name c2 --link c1:db -id 5182e96772bf 注意 link c1 指代另一个容器,db指定另一个别名 效果是: 进入c2容器,cat /etc/hosts--查看条目,新增了 地址影射, c1\db >指向了c1的地址 从而完成从c2容器内对 阅读全文
摘要:
Then replace a member with member remove and member add commands: Next, start the new member with --initial-cluster-state existing flag: 阅读全文
摘要:
export ETCDCTL_API=3 ENDPOINTS=localhost:2379 etcdctl --endpoints=${ENDPOINTS} role add root etcdctl --endpoints=${ENDPOINTS} role grant-permission ro 阅读全文
摘要:
一、建立集群 1、在每台机器上建立环境变量 阅读全文
摘要:
Watch key changes Applications can watch on a key or a range of keys to monitor for any updates. Here is the command to watch on key foo: $ etcdctl wa 阅读全文
摘要:
Note that any key that was created using the v2 API will not be able to be queried via the v3 API. A v3 API etcdctl get of a v2 key will exit with 0 a 阅读全文