Coder Social home page Coder Social logo

Comments (5)

alessfg avatar alessfg commented on July 29, 2024

Hi @smueller18!

Can you give me some more details about how and where are you trying to run the image? I tested it locally and on OpenShift and I didn't run into any issues. /var/cache/nginx is no longer in use either (switched the default location for NGINX files to /tmp/ too).

Cheers,
Alessandro.

from docker-nginx-unprivileged.

smueller18 avatar smueller18 commented on July 29, 2024

I just saw https://github.com/nginxinc/docker-nginx-unprivileged/blob/master/mainline/alpine/Dockerfile#L115 . There are 2 reasons why this new image fails for my setup:

  1. The user changed from 1001 to 101
  2. /var/cache/nginx/ is now moved to /tmp

I did not use the earlier provided nginx.conf so I have to manually adjust the changes in all my configs. I guess there are other people that are facing the same issue.
But after changing my custom nginx.conf to the new paths and switching the user to 101 it works again now.

from docker-nginx-unprivileged.

smueller18 avatar smueller18 commented on July 29, 2024

Last weekend, I opened a PR (nextcloud/docker#772) for the nextcloud docker project.
There is a config that also fails now until it is adjusted: https://github.com/nextcloud/docker/blob/2e00c8cb18ac6d94b756612f5f9223470c4a44d9/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf .

from docker-nginx-unprivileged.

alessfg avatar alessfg commented on July 29, 2024

Ah yeah I'm sorry about that. I didn't make any notes anywhere mentioning the two breaking changes and forgot to update the README too while at it (that's been already fixed).

The main NGINX Docker image introduced some changes to make it easier to run the image as a non root user and in the process of porting those changes the uid and temp folder locations changed. However, on a more positive note, I expect few breaking changes moving forward.

from docker-nginx-unprivileged.

smueller18 avatar smueller18 commented on July 29, 2024

I am fine with that, it was just a bit unexpected 😄

from docker-nginx-unprivileged.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.