1.问题产生描述
在docker中启动etcd时报错,错误原因时没有认证
2.解决方法
1.在docker中打开命令行
2.输入
添加root,创建root后,root默认有root最高权限
etcdctl --endpoints=http://127.0.0.1:2379 user add root
回车后输入密码 继续走下一步
开启认证
etcdctl --endpoints=http://127.0.0.1:2379 auth enable