Browse Source

Docs: Use single-node discovery.type for dev example

For the single node, dev example, the `discovery.type=single-node`[1],[2] 
is a perfect fit and makes the example shorter and more self explanatory.

Also expose the transport port, to help with dev use-cases using the 
transport client.

[1] https://github.com/elastic/elasticsearch/pull/23595
[2] https://github.com/elastic/elasticsearch/pull/23598

Relates #26289
Dimitrios Liappis 8 years ago
parent
commit
b789ce737b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/reference/setup/install/docker.asciidoc

+ 1 - 1
docs/reference/setup/install/docker.asciidoc

@@ -49,7 +49,7 @@ Elasticsearch can be quickly started for development or testing use with the fol
 
 ["source","sh",subs="attributes"]
 --------------------------------------------
-docker run -p 9200:9200 -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" {docker-image}
+docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" {docker-image}
 --------------------------------------------
 
 endif::[]