Skip to content

Commit

Permalink
Update add_docker_metadata docs on socket issues (elastic#19541)
Browse files Browse the repository at this point in the history
Docker socket can become stale when Docker is restarted, this PR adds
info about that situation and how to deal with it
  • Loading branch information
Carlos Pérez-Aradros Herce authored and melchiormoulin committed Oct 14, 2020
1 parent dc49dce commit 49cc7c3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ To avoid privilege issues, you may also need to add `--user=root` to the
`docker run` flags. Because the user must be part of the docker group in order
to access `/var/run/docker.sock`, root access is required if {beatname_uc} is
running as non-root inside the container.
If Docker daemon is restarted the mounted socket will become invalid and metadata
will stop working, in these situations there are two options:
- Restart {beatname_uc} every time Docker is restarted
- Mount the entire `/var/run` directory (instead of just the socket)
=====

[source,yaml]
Expand Down

0 comments on commit 49cc7c3

Please sign in to comment.