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
This commit is contained in:
Dimitrios Liappis 2017-09-15 16:14:47 +03:00 committed by GitHub
parent 0f2a11695e
commit b789ce737b
1 changed files with 1 additions and 1 deletions

View File

@ -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::[]