From 6f48ca3c25ba8acf3a95799dace8acfaf31485d4 Mon Sep 17 00:00:00 2001 From: Dina Nimrodi Date: Tue, 15 Dec 2020 11:08:55 +0200 Subject: [PATCH] docker permissions nobody:nogroup to 65534:65534 --- Dockerfile.multi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.multi b/Dockerfile.multi index 8201a6ef6c2..02d84d8a43e 100644 --- a/Dockerfile.multi +++ b/Dockerfile.multi @@ -18,8 +18,10 @@ COPY --from=builder /go/src/github.com/prometheus/prometheus/console_libraries/ COPY --from=builder /go/src/github.com/prometheus/prometheus/consoles/ /usr/share/prometheus/consoles/ RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ + +# should be "chown -R nobody:nogroup etc/prometheus /prometheu" but latest busybox release broke the name convention RUN mkdir -p /prometheus && \ - chown -R nobody:nogroup etc/prometheus /prometheus + chown -R 65534:65534 etc/prometheus /prometheus USER nobody EXPOSE 9090