Answer the question
In order to leave comments, you need to log in
What user are your containers running under?
Hello everyone,
I want to ask from general practices, do you force your developers to write a type directive in your Dockerfiles
USER just_user
before the main process itself - for example, for a dotnet application
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
Or is there a need to change the user to non-root?
all the best,
Vadim
Answer the question
In order to leave comments, you need to log in
It is recommended to use a non-root user
https://sysdig.com/blog/dockerfile-best-practices/
There are also vulnerability scanners in Docker images.
But in practice, many give a damn about safety. So at least try to make as little effort as possible.
We don’t force it, but in accordance with the policies, our Kubernetes will refuse to launch containers from a user with id0, or redefine the user (usually by id 1000) at the time of launch, depending on the service delivery option.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question