diff --git a/telegraf/arm/Dockerfile b/telegraf/arm/Dockerfile index 5fba723..d9287ce 100644 --- a/telegraf/arm/Dockerfile +++ b/telegraf/arm/Dockerfile @@ -12,7 +12,7 @@ ENV TELEGRAF_URL https://dl.influxdata.com/telegraf/releases/${TELEGRAF_FILE} RUN set -xe \ && apk add --no-cache --virtual .build-deps ca-certificates curl tar \ && update-ca-certificates \ - && curl -sSL ${TELEGRAF_URL} | tar xz --strip 1 -C / \ + && curl -sSL ${TELEGRAF_URL} | tar xz --strip 2 -C / \ && apk del .build-deps \ && rm -rf /var/cache/apk/* diff --git a/telegraf/arm/docker-compose.yml b/telegraf/arm/docker-compose.yml index a9e18c6..4e5d3e3 100644 --- a/telegraf/arm/docker-compose.yml +++ b/telegraf/arm/docker-compose.yml @@ -5,4 +5,6 @@ telegraf: - "8094:8094/tcp" volumes: - ./telegraf.conf:/etc/telegraf/telegraf.conf + net: host + pid: host restart: always diff --git a/telegraf/docker-compose.yml b/telegraf/docker-compose.yml index 30faced..6033e3c 100644 --- a/telegraf/docker-compose.yml +++ b/telegraf/docker-compose.yml @@ -5,4 +5,6 @@ telegraf: - "8094:8094/tcp" volumes: - ./telegraf.conf:/etc/telegraf/telegraf.conf + net: host + pid: host restart: always