Skip to content

Commit

Permalink
[DOCS] Docker configs should set network.host to 0.0.0.0 (#80042) (
Browse files Browse the repository at this point in the history
…#80454)

The `elasticsearch.yml` file that ships with our Docker image includes the
`network.host: 0.0.0.0` setting by default. If a user bind-mounts a custom
config file, it should include this setting to ensure Elasticsearch is reachable.

Closes #77937.
  • Loading branch information
jrodewig authored Nov 5, 2021
1 parent d89f0ac commit dd9c612
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/reference/setup/install/docker.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,11 @@ For example, to bind-mount `custom_elasticsearch.yml` with `docker run`, specify
-v full_path_to/custom_elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
--------------------------------------------

If you bind-mount a custom `elasticsearch.yml` file, ensure it includes the
`network.host: 0.0.0.0` setting. This setting ensures the node is reachable for
HTTP and transport traffic, provided its ports are exposed. The Docker image's
built-in `elasticsearch.yml` file includes this setting by default.

IMPORTANT: The container **runs {es} as user `elasticsearch` using
uid:gid `1000:0`**. Bind mounted host directories and files must be accessible by this user,
and the data and log directories must be writable by this user.
Expand Down

0 comments on commit dd9c612

Please sign in to comment.