Why Your Docker Container Should Never Run as Root (And How to Fix It)
Imagine you made any spring boot application and created docker file which look like this
FROM openjdk:17-jdk-slim
COPY target/myapp.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
This container runs as a root
The problem with this approach..
W...
why-not-to-run-doc-containers-as-root.hashnode.dev2 min read