bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.31k stars 4.8k forks source link

The issue of "I have no name" being displayed inside a container #72644

Open 642070630 opened 1 week ago

642070630 commented 1 week ago

Name and Version

bitnami/pgpool all

What architecture are you using?

None

What steps will reproduce the bug?

When starting the container as root is not specified, "i have no name" is displayed when the user enters the container.

What is the expected behavior?

Write user root in the build dockerfile, make the container start as root by default and enter the container to display the normal user name

carrodher commented 1 week ago

Bitnami containers are designed to operate as non-root by default. Consequently, any files or directories used by the application should be owned by the root group, as the random user (1001 by default) is a member of this root group. To ensure proper permissions, you'll need to adjust the ownership of your local directory accordingly.

For more comprehensive information about non-root containers and their significance for security, you can explore the following resources:

These references provide valuable insights into the best practices and considerations when working with non-root containers in Bitnami applications.