如果没有进行外部挂载输入如下命令进行配置
docker exec -it es7 /bin/bash
cd config
network.host: 0.0.0.0 http.cors.enabled: true http.cors.allow-origin: "*"