Answers: <p>in your docker-compose.yml you need change this parametres:</p>
  <p>environment:
  ELASTICSEARCH_URL: https://odfe-node1:9200
  ELASTICSEARCH_HOSTS: https://odfe-node1:9200</p>
  <p>For this:</p>
  <p>environment:
  ELASTICSEARCH_URL: http://odfe-node1:9200
  ELASTICSEARCH_HOSTS: http://odfe-node1:9200</p>
  <p>And after in your file config for elasticsearch put this:</p>
  <p>https-enabled = false</p>
  <p>Try and enjoy ;)</p>
  
Answers: CC BY-SA 4.0
Answers: 2020-10-22T23:56:41.407Z
Answers: Thanks but I'm not using docker compose, only docker.
Answers: Avner
Answers: CC BY-SA 4.0
Answers: 2020-10-22T20:58:37.800Z
Answers: 2020-10-22T20:58:37.800Z
Answers: apolo
Body: <p>I'm trying to run the docker image of the AWS opendistro elasticsearch on my laptop for tesing</p>
  <p><a href="https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker/" rel="nofollow noreferrer">https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker/</a></p>
  <p>When I run it, it expects an HTTPS connection. How do I run it on HTTP?</p>
  <p>I'm using this command to run:</p>
  <p><code>docker run -d --name elasticsearch-od -p 9200:9200 -p 9600:9600 -e &quot;discovery.type=single-node&quot;</code></p>
  
Tags: <docker><elasticsearch>
Title: How do I run opendistro elasticsearch in docker on HTTP
UserDisplayName: Avner
ThreadText: # How do I run opendistro elasticsearch in docker on HTTP
  
  (Asked by: username_0 on 2020-10-22)
  
  I'm trying to run the docker image of the AWS opendistro elasticsearch on my laptop for tesing
  
  <https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker/>
  
  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"`
  
  **Tags:** docker, elasticsearch
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-10-22. Score: 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 ;)
  
  > **Comments:**
  > **username_0**: Thanks but I'm not using docker compose, only docker.  
  
  ---
  
  