Is there an existing issue for this?
Current Behavior
In my host, the uid/gid of my current login user is 1000:1000. And I want to set nextcloud folder with uid/gid to 1000:1000.
I'm using rootless docker. And I have read the https://docs.linuxserver.io/images/docker-nextcloud/#user-group-identifiers and https://docs.linuxserver.io/general/understanding-puid-and-pgid/ .
-
sudo chown 1000:1000 ./nextcloud
-
docker compose up -d with rootless docker. I find the uid/gid changed for ./nextcloud/config and ./nextcloud/data from 1000 to 100999, and files in ./nextcloud/data/* are still 1000:1000 on host.

But these files in container has different uid/gid. the ./nextcloud/data is 1000:1000, the files in ./nextcloud/data/* are 0:0.

-
The server start up without error logs. But nextcloud client cannot sync file to remote.

Expected Behavior
No response
Steps To Reproduce
sudo chown 1000:1000 ./nextcloud
docker compose up -d
Environment
- OS: arch linux
- How docker service was installed: follow https://docs.docker.com/engine/security/rootless/
CPU architecture
x86-64
Docker creation
version: "3"
services:
nextcloud:
image: linuxserver/nextcloud:latest
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
volumes:
- ./nextcloud/config:/config
- ./nextcloud/data:/data
Container logs
adoyle-nextcloud-1 | ───────────────────────────────────────
adoyle-nextcloud-1 |
adoyle-nextcloud-1 |
adoyle-nextcloud-1 | ██╗ ███████╗██╗ ██████╗
adoyle-nextcloud-1 | ██║ ██╔════╝██║██╔═══██╗
adoyle-nextcloud-1 | ██║ ███████╗██║██║ ██║
adoyle-nextcloud-1 | ██║ ╚════██║██║██║ ██║
adoyle-nextcloud-1 | ███████╗███████║██║╚██████╔╝
adoyle-nextcloud-1 | ╚══════╝╚══════╝╚═╝ ╚═════╝
adoyle-nextcloud-1 |
adoyle-nextcloud-1 |
adoyle-nextcloud-1 | Brought to you by linuxserver.io
adoyle-nextcloud-1 | ───────────────────────────────────────
adoyle-nextcloud-1 |
adoyle-nextcloud-1 |
adoyle-nextcloud-1 | To support LSIO projects visit:
adoyle-nextcloud-1 | https://www.linuxserver.io/donate/
adoyle-nextcloud-1 |
adoyle-nextcloud-1 |
adoyle-nextcloud-1 | ───────────────────────────────────────
adoyle-nextcloud-1 | GID/UID
adoyle-nextcloud-1 | ───────────────────────────────────────
adoyle-nextcloud-1 |
adoyle-nextcloud-1 |
adoyle-nextcloud-1 | User UID: 1000
adoyle-nextcloud-1 | User GID: 1000
adoyle-nextcloud-1 | ───────────────────────────────────────
adoyle-nextcloud-1 | Linuxserver.io version: 31.0.4-ls379
adoyle-nextcloud-1 | Build-date: 2025-05-06T11:55:23+00:00
adoyle-nextcloud-1 | ───────────────────────────────────────
adoyle-nextcloud-1 |
adoyle-nextcloud-1 | using keys found in /config/keys
adoyle-nextcloud-1 | Initializing nextcloud 31.0.4.1 (this can take a while) ...
adoyle-nextcloud-1 | Setting permissions
adoyle-nextcloud-1 | Initializing finished
adoyle-nextcloud-1 | [custom-init] No custom files found, skipping...
adoyle-nextcloud-1 | [ls.io-init] done.
Is there an existing issue for this?
Current Behavior
In my host, the uid/gid of my current login user is 1000:1000. And I want to set nextcloud folder with uid/gid to 1000:1000.
I'm using rootless docker. And I have read the https://docs.linuxserver.io/images/docker-nextcloud/#user-group-identifiers and https://docs.linuxserver.io/general/understanding-puid-and-pgid/ .
sudo chown 1000:1000 ./nextclouddocker compose up -dwith rootless docker. I find the uid/gid changed for ./nextcloud/config and ./nextcloud/data from 1000 to 100999, and files in ./nextcloud/data/* are still 1000:1000 on host.But these files in container has different uid/gid. the ./nextcloud/data is 1000:1000, the files in ./nextcloud/data/* are 0:0.
The server start up without error logs. But nextcloud client cannot sync file to remote.
Expected Behavior
No response
Steps To Reproduce
sudo chown 1000:1000 ./nextclouddocker compose up -dEnvironment
CPU architecture
x86-64
Docker creation
version: "3" services: nextcloud: image: linuxserver/nextcloud:latest restart: unless-stopped environment: - PUID=1000 - PGID=1000 - TZ=Asia/Shanghai volumes: - ./nextcloud/config:/config - ./nextcloud/data:/dataContainer logs