TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.37k stars 736 forks source link

OpenShift - Permission Denied #86

Closed fernandoamorim30 closed 2 years ago

fernandoamorim30 commented 2 years ago

Hello,

I`m trying run this project on OpenShift and has returned this message after container created:

image

Someone has haved this issue before?

Thanks! 👊

lstellway commented 2 years ago

Hey @fernandoamorim30 👋

Looks like a permissions issue. Do you have this line in your Dockerfile (reference)?

RUN chown -R nobody.nobody /var/www/html /run /var/lib/nginx /var/log/nginx

@TrafeX

Just using this issue as an opportunity to thank you for the work on this image 🙏 It works wonderfully 💯

TrafeX commented 2 years ago

Hi @fernandoamorim30,

Could you post the deployment yaml from OpenShift? I suspect the filesystem has a different owner specified.

@lstellway Thank you for the kind words! :pray:

TrafeX commented 2 years ago

Hi @fernandoamorim30,

I'm going to close this issue due to inactivity. Let me know if you still experience this and can share the information I requested above.