wahyd4 / aria2-ariang-x-docker-compose

Docker compose files for Aria2+ AriaNg+ filerun/ Nextcloud/ h5ai + Plex. 图形化BT,磁力,离线下载,文件管理,播放,投屏
1.78k stars 282 forks source link

请问在哪里或者哪个容器里面执行 chown -R www-data <文件夹> #78

Closed bebestmaple closed 4 years ago

bebestmaple commented 4 years ago

image docker compose yml文件如下,跟仓库里的一样 1、请问在哪里或者哪个容器里面执行 chown -R www-data <文件夹> 2、请问根据上面的配置我需要给哪些文件夹加权限

wahyd4 commented 4 years ago

It's been described very clear: 在宿主机上执行命令 sudo chown -R www-data <abc> #<>这里是你需要修改的目录, 让Nextcloud 有权限读写、管理文件

The full version document is here https://github.com/wahyd4/aria2-ariang-x-docker-compose/tree/master/nextcloud

bebestmaple commented 4 years ago

It MEANs I need to create a new user named www-data in host cause I just see user www-data in container nextcloud ? From the yaml file,If the nextcloud volums is /docker/aria2-ariang-x-docker-compose/nextcloud/data:/data,Then commod is chown -R www-data ./data

bebestmaple commented 4 years ago

Must add commond

- PUID=1000 # bind custom linux user id
- PGID=1000 # bind custom linux group id

bind my host user? Then runchown -R <bind user> <folder> Is that right?