Closed othqsa95 closed 1 month ago
Initializing Redis
mkdir: cannot create directory '/bitnami/redis': Permission denied
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.
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:
- Why non-root containers are important for security
- Use Non-Root Containers
- Work With Non-Root Containers for Bitnami Applications
- Running non-root containers on Openshift
These references provide valuable insights into the best practices and considerations when working with non-root containers in Bitnami applications.
When I check the permission using the cmd I have this output:
$ ls -ld /bitnami
drwxr-xr-x 2 root root 4096 Jan 1 00:00 /bitnami
Do I need to change the ownership with sudo chown -R $USER:$USER /bitnami
+ the permission with sudo chmod 755 /bitnami
?
Yes, that could work if both variables are properly defined
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Name and Version
bitnami/redis
What steps will reproduce the bug?
I'm trying to create the container, with Plesk Panel, through Docker, using the docker image Bitnami/Redis
What is the expected behavior?
Creating the container and running Redis through Docker, with Plesk.
What do you see instead?