dgtlmoon / dgtlmoon/changedetection.io
Folders and files still owned by root even with PUID and PGID specified
- Dominant language
- Python
- Stars
- 34.1k
- Forks
- 2k
- Avg merge
- 10h
- Merged PRs (30d)
- 61
Description
Running changedetection via docker-compose, specifying PUID and PGID, but the folders and files it creates are still owned by root. Tried just UID and GID as well, not sure what the issue might be.
```
version: "3.9"
services:
app:
container_name: changedetection.io
image: dgtlmoon/changedetection.io:latest
restart: "always"
ports:
- "5000:5000"
volumes:
- "/volume1/docker/changedetection/datastore:/datastore"
network_mode: "bridge"
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "com.centurylinklabs.watchtower.monitor-only=true"
environment:
- PUID=1030
- PGID=100
healthcheck:
test: apt-get update -y > /dev/null && apt-get install -y curl > /dev/null && curl --fail -S http://www.google.com/ > /dev/null || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
```
Contributor guide
Research direction
Start by reproducing the issue with the provided docker-compose configuration and inspect how the container handles the PUID and PGID environment variables and the mounted /datastore path. Done means files and folders created in the mounted datastore are owned by the configured user and group.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100