9 lines
332 B
Docker
9 lines
332 B
Docker
ARG ELASTIC_VERSION
|
|
|
|
FROM docker.elastic.co/beats/elastic-agent:${ELASTIC_VERSION}
|
|
|
|
# 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
|