-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USER command should not require user or group IDs to exist #1778
Comments
I have the same issue, but in my case :
My Dockerfile is the following : FROM adoptopenjdk/openjdk8:alpine-jre
RUN apk --no-cache add curl tzdata
ENV TZ Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 8080
COPY /docker-entrypoint.sh .
RUN chmod +x /docker-entrypoint.sh
WORKDIR /app
RUN addgroup -S spring && adduser -S spring -G spring
RUN chown spring:spring -R /app /docker-entrypoint.sh
USER spring:spring
ARG JAR_FILE=target/*.jar
COPY --chown=spring:spring ${JAR_FILE} app.jar
HEALTHCHECK CMD curl -v --silent http://localhost:8080/api/actuator/health 2>&1 | grep UP
ENTRYPOINT ["/docker-entrypoint.sh", "java","-jar","/app/app.jar"]
CMD [] The command is :
The logs are
Sometimes, it fails when adding the group :
And I can't figure out why. It always work using docker CLI. |
Closing as a dupe of #477 |
Actual behavior
see also #477
Expected behavior
docker image should be build.
To Reproduce
test1
with following content:docker run --pull always --rm -it -v $PWD:/workspace gcr.io/kaniko-project/executor:latest --dockerfile=test1 --no-push --context=dir:///workspace
docker run --pull always --rm -it -v $PWD:/workspace gcr.io/kaniko-project/executor:debug --dockerfile=test1 --no-push --context=dir:///workspace
Results:
Additional Information
gcr.io/kaniko-project/executor latest 1c812ffa8ec1 5 months ago 78 MB
gcr.io/kaniko-project/executor debug 7053f62a27a8 5 months ago 117 MB
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: