重新安装elasticsearch 容器不需要再执行,
docker exec -it elasticsearch /bin/bash
bin/elasticsearch-setup-passwords interactive
执行会报:Failed to authenticate user 'elastic' against http://172.18.0.5:9200/_security/_authenticate?pretty 错误。
原因:密码已经被保存在security-7 索引中如果要重置或修改密码则执行curl XDELETE ‘http://localhost:9200/.security-7’ 使用该命令删除,重启elsearch
如果还是使用之前容器已经设置的密码,则不需要进行任何处理,直接使用原密码即可