I noticed that the examples for running the Eclipse Temurin Docker images run the images as root and not as non-root user.
I thought it always would be better to run Docker images as non-root user?
Is it safe to run the Temurin images as root? (For example in a Azure K8s cluster?)
If not, which user should I use? Uid 65534 (nobody)? Or should I create a new user?
I found out that using the user nobody with uid 65534 works quite fine.
Now my Dockerfile looks like this: