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.
1 parent 45b1761 commit 6b9f76aCopy full SHA for 6b9f76a
kapacitor/1.8/alpine/Dockerfile
@@ -1,7 +1,7 @@
1
FROM alpine:3.20
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 && \
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