Skip to content

Commit

Permalink
Update add_docker_metadata docs on socket issues (#19541) (#19892)
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

(cherry picked from commit 736c953)
  • Loading branch information
Carlos Pérez-Aradros Herce authored Jul 15, 2020
1 parent f033d9e commit 5190ce5
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 5190ce5

Please sign in to comment.