Is there any explanation that the user running the production environment container is root?

  docker, question

For example, a service was written in python.

python start.py

Is the running user root?

If so, is there any potential safety hazard?

The running user can write in Dockerfile. The default is root.
Of course, there are security risks when using root. docker’s best practices recommend running applications with ordinary users (non-root).