Skip to content
Browse files

Fix permissions on Prometheus config files (#1429)

Prometheus runs as nobody, which meant it couldn't read the config
files in /etc/prometheus. Change ownership of the files we place there
so that it can read them.
  • Loading branch information
RJPercival authored and gdbelvin committed Jan 8, 2020
1 parent 926eef1 commit 610bdd3337dfaa0ba45000805dd00794612b1733
Showing with 2 additions and 2 deletions.
  1. +2 −2 deploy/prometheus/Dockerfile
@@ -1,5 +1,5 @@
FROM prom/prometheus

ADD ./deploy/prometheus/prometheus.yml /etc/prometheus/prometheus.yml
ADD ./deploy/prometheus/prometheus.rules /etc/prometheus/prometheus.rules
ADD --chown=nobody:nogroup ./deploy/prometheus/prometheus.yml /etc/prometheus/prometheus.yml
ADD --chown=nobody:nogroup ./deploy/prometheus/prometheus.rules /etc/prometheus/prometheus.rules

0 comments on commit 610bdd3

Please sign in to comment.
You can’t perform that action at this time.