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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c20991-32249.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c20991-32249.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?