From d4e3087b4b9f4f85a58e917136a9f7beafd6f0af Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 1 Jun 2016 18:30:12 +0800 Subject: [PATCH] fix telegraf --- telegraf/arm/Dockerfile | 2 +- telegraf/arm/docker-compose.yml | 2 ++ telegraf/docker-compose.yml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) 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