We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45b1761 + 35796e5 commit 98c1460Copy full SHA for 98c1460
kapacitor/1.8/alpine/Dockerfile
@@ -1,7 +1,7 @@
1
-FROM alpine:3.20
+FROM alpine:3.22
2
3
RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
4
-RUN apk add --no-cache ca-certificates su-exec && \
+RUN apk add --no-cache ca-certificates setpriv && \
5
update-ca-certificates
6
7
ENV KAPACITOR_VERSION 1.8.0
kapacitor/1.8/alpine/entrypoint.sh
@@ -11,5 +11,5 @@ export KAPACITOR_HOSTNAME
11
if [ "$(id -u)" -ne 0 ] || [ "${KAPACITOR_AS_ROOT}" = "true" ]; then
12
exec "$@"
13
else
14
- exec su-exec kapacitor "$@"
+ exec setpriv --reuid kapacitor --regid kapacitor --init-groups "$@"
15
fi
0 commit comments