Invoice Ninja Docker Issue

I am trying to upgrade a docker container from v4.5.13 to invoiceninja:latest. When I upgrade the container to the latest version, I cannot start the container anymore.

It’s failing due to this chown operation in entrypoint.sh:
# Set permission for web server to create/update files
chown -R invoiceninja:www-data /var/www/app/storage /var/www/app/public /var/www/app/bootstrap

I just get a bunch of Operation Not Permitted errors, ex:
ninja[14583]: chown: /var/www/app/storage/app: Operation not permitted

I get the same Operation Not Permitted errors even when running the container with root permissions.

Is there any way to fix this?

Hi,

Sorry, I’m not sure. I don’t have too much experience with Docker

Maybe this will help?