Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to run with specified user #2354

Open
bmaehr opened this issue Dec 19, 2024 · 0 comments
Open

Document how to run with specified user #2354

bmaehr opened this issue Dec 19, 2024 · 0 comments

Comments

@bmaehr
Copy link

bmaehr commented Dec 19, 2024

According to #1812 it is possible to run the docker images with a specivied user. I was not able to make it working.

I use docker compose tu run the images and added

services:
  nextcloud-fpm:
    image: nextcloud:fpm-alpine
    user: 33:33

where 33 is the id of www-data on the host system.

But I still get the mesage that config.php is read-only.

If i do a docker exec -it cloud-nextcloud-fpm-1 sh Im abel to write config.php, but not if I do docker compose exec --user www-data nextcloud-fpm sh. This gives me

/var/www/html $ whoami
whoami: unknown uid 82

I'm confused.

Is it caused by

    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/passwd:/etc/passwd:ro
      - /etc/group:/etc/group:ro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant