I'm trying to run the docker image of the AWS opendistro elasticsearch on my laptop for tesing


When I run it, it expects an HTTPS connection. How do I run it on HTTP?

I'm using this command to run:

docker run -d --name elasticsearch-od -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node"

1 Answer 1


in your docker-compose.yml you need change this parametres:

environment: ELASTICSEARCH_URL: https://odfe-node1:9200 ELASTICSEARCH_HOSTS: https://odfe-node1:9200

For this:

environment: ELASTICSEARCH_URL: http://odfe-node1:9200 ELASTICSEARCH_HOSTS: http://odfe-node1:9200

And after in your file config for elasticsearch put this:

https-enabled = false

Try and enjoy ;)

  • Thanks but I'm not using docker compose, only docker.
    – Avner
    Commented Oct 22, 2020 at 23:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.