mirror of
https://github.com/deviantony/docker-elk.git
synced 2026-01-04 03:53:40 +01:00
9 lines
340 B
Docker
9 lines
340 B
Docker
ARG ELASTIC_VERSION
|
|
|
|
FROM docker.elastic.co/beats/elastic-agent:${ELASTIC_VERSION:-8.17.1}
|
|
|
|
# Ensure the 'state' directory exists and is owned by the 'elastic-agent' user,
|
|
# otherwise mounting a named volume in that location creates a directory owned
|
|
# by root:root which the 'elastic-agent' user isn't allowed to write to.
|
|
RUN mkdir state
|