From 35989d911cc16e86853fe02fbaea0ed9ffa1529e Mon Sep 17 00:00:00 2001 From: zryfish Date: Mon, 20 Jul 2020 22:36:18 +0800 Subject: [PATCH] use root for controller manager cause we need to access csi plugins sock (#2505) Signed-off-by: Jeff --- build/ks-controller-manager/Dockerfile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/build/ks-controller-manager/Dockerfile b/build/ks-controller-manager/Dockerfile index 1728a099c..263ab11a1 100644 --- a/build/ks-controller-manager/Dockerfile +++ b/build/ks-controller-manager/Dockerfile @@ -2,19 +2,11 @@ # Use of this source code is governed by an Apache license # that can be found in the LICENSE file. FROM alpine:3.11 -ENV USER=kubesphere -ENV UID=1002 -# docker group -ENV GID=998 COPY /bin/cmd/controller-manager /usr/local/bin/ -RUN apk add --no-cache ca-certificates && \ - addgroup --gid "$GID" "$USER" && \ - adduser -D -g "" --ingroup "$USER" -u "$UID" "$USER" && \ - chown -R kubesphere:"$GID" /usr/local/bin/controller-manager +RUN apk add --no-cache ca-certificates EXPOSE 8443 8080 -USER kubesphere CMD ["sh"] \ No newline at end of file