Skip to content

Commit 53069c6

Browse files
committed
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] #23595 [2] #23598 Relates #26289
1 parent 7405263 commit 53069c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/setup/install/docker.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Elasticsearch can be quickly started for development or testing use with the fol
4949

5050
["source","sh",subs="attributes"]
5151
--------------------------------------------
52-
docker run -p 9200:9200 -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" {docker-image}
52+
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" {docker-image}
5353
--------------------------------------------
5454

5555
endif::[]

0 commit comments

Comments
 (0)