bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.38k stars 4.85k forks source link

Bitnami - Redis - Docker / Plesk #71312

Closed othqsa95 closed 1 month ago

othqsa95 commented 2 months ago

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?

mkdir: cannot create directory '/bitnami/redis': Permission denied
othqsa95 commented 2 months ago

Initializing Redis

mkdir: cannot create directory '/bitnami/redis': Permission denied

FB_IMG_1724639060305.jpg

carrodher commented 2 months 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.

othqsa95 commented 2 months 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.

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?

carrodher commented 2 months ago

Yes, that could work if both variables are properly defined

github-actions[bot] commented 1 month ago

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.

github-actions[bot] commented 1 month ago

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.