1、进入到docker容器
docker exec -it es /bin/sh
2、查看elasticsearch插件列表是否有x-pack
sh-4.2# elasticsearch-plugin list
ik
ingest-geoip
ingest-user-agent
3、如果有,先卸载x-pack**[没有请忽略]**
sh-4.2# elasticsearch-plugin remove x-pack
4、如果没有,进入到module和plugins目录删除x-pack所有的 文件
sh-4.2# cd modules/
sh-4.2# rm -rf x-pack*
sh-4.2# cd plugins/
sh-4.2# rm -rf x-pack-*