mirror of
https://github.com/deviantony/docker-elk.git
synced 2026-04-07 01:23:13 +02:00
9 lines
341 B
Docker
9 lines
341 B
Docker
ARG ELASTIC_VERSION
|
|
|
|
FROM docker.elastic.co/beats/elastic-agent:${ELASTIC_VERSION:-7.17.28}
|
|
|
|
# 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
|