What's wrong with the production environment container where the user is root?

for example, write a service in python.

python start.py

is the running user root?

if so, are there any security risks?


running users can write in Dockerfile, which defaults to root users.
root users certainly have security risks, and docker best practices recommend using ordinary users (not root) to run applications.

Menu