Skip to content

Commit 018de1a

Browse files
authored
Dix docker instructions for elasticsearch (#84604) (#84607)
We suggest users should run the containers in a specific network but we didn't include the command to create the network. This commit addresses that.
1 parent 71992f9 commit 018de1a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/reference/setup/install/docker.asciidoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ security settings from your {es} cluster, authenticates to {es} with the
7575
The following command starts a single-node {es} cluster for development or
7676
testing.
7777

78+
. Create a new docker network for {es} and {kib}
79+
+
80+
[source,sh]
81+
----
82+
docker network create elastic
83+
----
84+
7885
. Start {es} in Docker. A password is generated for the `elastic` user and
7986
output to the terminal, plus an enrollment token for enrolling {kib}.
8087
+
@@ -514,7 +521,7 @@ includes your desired <<set-jvm-heap-size,heap size>> settings.
514521
For testing, you can also manually set the heap size using the `ES_JAVA_OPTS`
515522
environment variable. For example, to use 16GB, specify `-e
516523
ES_JAVA_OPTS="-Xms16g -Xmx16g"` with `docker run`. The `ES_JAVA_OPTS` variable
517-
overrides all other JVM options. We do not recommend using `ES_JAVA_OPTS` in
524+
overrides all other JVM options. We do not recommend using `ES_JAVA_OPTS` in
518525
production. The `docker-compose.yml` file above sets the heap size to 512MB.
519526

520527

0 commit comments

Comments
 (0)