invoiceninja / dockerfiles

Docker files for Invoice Ninja
https://hub.docker.com/r/invoiceninja/invoiceninja
GNU General Public License v2.0
418 stars 268 forks source link

Docker Compose instructions don't work #616

Closed gmpreussner closed 2 months ago

gmpreussner commented 2 months ago

Setup information docker-compose

Describe the bug Unable to install Invoice Ninja 5 via Docker Compose instructions provided in README

To reproduce

  1. Clone the dockerfiles repository
  2. Run docker run --rm -it invoiceninja/invoiceninja php artisan key:generate --show

Expected behavior An app key is generated

Screenshots/logs The following output is produced instead:

app-1     | rm: can't remove '/var/www/app/docker-backup-storage/logs': Invalid argument
app-1     | rm: can't remove '/var/www/app/docker-backup-storage/framework/testing': Invalid argument
app-1     | rm: can't remove '/var/www/app/docker-backup-storage/framework/cache': Invalid argument
app-1     | rm: can't remove '/var/www/app/docker-backup-storage/framework/sessions': Invalid argument
app-1     | rm: can't remove '/var/www/app/docker-backup-storage/framework/views': Invalid argument
app-1     | rm: can't remove '/var/www/app/docker-backup-storage/app/public': Invalid argument

Docker/Kubernetes/Helm:

Additional context

I also tried running the following commands prior to generating an app key:

chmod 755 docker/app/public
sudo chown -R 1500:1500 docker/app

I verified that the folder permissions were applied as indicated above.

I did not modify the docker-compose.yml in any way.

turbo124 commented 2 months ago

Most likely the user you are running the container as is no in that group.