I’m starting the Elasticsearch 7.11 in my linux, and it works when i run curl -XGET localhost:9200
INSIDE MY LINUX. But the issue is, i’m trying to access this Elasticsearch service started in my linux, inside a Devilbox docker, and when i run curl -XGET localhost:9200
on the CLI inside Devilbox, it returns ‘connection refused’ยท
Already tried to change network.host to 0.0.0.0, 127.0.0.1 and it doesn’t worked.
Already tried to change discovery hosts to [“0.0.0.0”, “[::1]”] and it doesn’t worked too.
When i starts the service in my linux and runs curl -XGET localhost:9200
it returns:
When i tried INSIDE DEVILBOX it returns:
I’m triyng this way, because installing the elasticsearch inside devilbox container didn’t worked. So i’m using the elasticsearch service outside the devilbox container.