[x] My issue is about the documentation content or website
Type of issue
Information is incorrect
Description
I have a Spring Boot REST API project and I followed the Java language specific guide instructions to containerize it in the right way.
However, the build stage presented in the Dockerfile makes my app raise an exception because it has no permission to create a file. This occurs because I use Logback FileAppender feature for logging.
# Create a non-privileged user that the app will run under.
# See https://docs.docker.com/go/dockerfile-user-best-practices/
ARG UID=10001
RUN adduser \
--disabled-password \
--gecos "" \
--home "/nonexistent" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "${UID}" \
appuser
USER appuser
I know that logging to a file is not a standard for every Spring Boot application, and maybe, I should not do it. However, I wonder if the Docker build should be compatible with this because some projects may require some kind of access to the file system.
Is this a docs issue?
Type of issue
Information is incorrect
Description
I have a Spring Boot REST API project and I followed the Java language specific guide instructions to containerize it in the right way.
However, the build stage presented in the Dockerfile makes my app raise an exception because it has no permission to create a file. This occurs because I use Logback FileAppender feature for logging.
Location
https://docs.docker.com/guides/java/containerize/
Suggestion
I know that logging to a file is not a standard for every Spring Boot application, and maybe, I should not do it. However, I wonder if the Docker build should be compatible with this because some projects may require some kind of access to the file system.