Replies: 11 comments 6 replies
|
我也是出现这情况 |
2 replies
|
我也出现此问题请问怎么解决 |
0 replies
|
# docker-compose.yml
services:
openlist:
image: 'openlistteam/openlist:latest'
container_name: openlist
user: '0:0' # Please replace `0:0` with the actual user ID and group ID you want to use to run OpenList.
volumes:
- './data:/opt/openlist/data'
ports:
- '5244:5244'
environment:
- UMASK=022
restart: unless-stopped
邮件 ------------------
发件人: jhub1234 ***@***.***>
发送时间: 2025年8月21日 12:50
收件人: OpenListTeam/OpenList ***@***.***>
抄送: lylcc520 ***@***.***>, Author ***@***.***>
主题: Re: [OpenListTeam/OpenList] 最新版本4.1.1无法读取config权限 (Discussion #1103)
我也出现此问题请问怎么解决
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
0 replies
|
因为没有了PUID PGID的权限,因此问题出现,需要官方下个版本修复。 |
2 replies
|
我是直接加了user: '0:0'; |
0 replies
|
官方做了调整 给了一个 1001 的用户权限 其实更注重隐私和权限的控制了
后面的版本都是映入新的规则,老规则被放弃了
…------------------ 原始邮件 ------------------
发件人: mapleshadow ***@***.***>
发送时间: 2025年8月24日 18:48
收件人: OpenListTeam/OpenList ***@***.***>
抄送: lylcc520 ***@***.***>, Author ***@***.***>
主题: Re: [OpenListTeam/OpenList] 最新版本4.1.1无法读取config权限 (Discussion #1103)
因为没有了PUID PGID的权限,因此问题出现,需要官方下个版本修复。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
0 replies
|
docker小白请教,通过极空间的docker面板添加的要怎么改? |
0 replies
|
services:
openlist:
image: 'openlistteam/openlist:latest'
container_name: openlist
volumes:
- '路径/openlist:/opt/openlist/data'
user: '0:0'
ports:
- '5244:5244'
environment:
- TZ=Asia/Shanghai
- UMASK=022
restart: unless-stopped
以上是最新版本解决权限问题,因为开发团队引入了新的安全权限体系,我没有用1001:1001用户,而是用的0:0用户
…------------------ 原始邮件 ------------------
发件人: do ***@***.***>
发送时间: 2025年9月4日 22:35
收件人: OpenListTeam/OpenList ***@***.***>
抄送: lylcc520 ***@***.***>, Author ***@***.***>
主题: Re: [OpenListTeam/OpenList] 最新版本4.1.1无法读取config权限 (Discussion #1103)
我通过podman run -it --user $(id -u):$(id -g) --privileged --restart=unless-stopped -v ~/.config/openlist/:/opt/openlist/data -p 5244:5244 -e UMASK=022 --name="openlist3" openlistteam/openlist:latest-aria2 /bin/bash命令进了容器的 shell 后,查看目录的权限,发现权限不正常,映射进来的目录变成了root用户的了,如下:
c7bc72bf3129:/opt/openlist$ ls -all total 132560 drwxr-xr-x 1 openlist openlist 34 Aug 18 07:29 . drwxr-xr-x 1 openlist openlist 50 Aug 17 20:25 .. drwxr-xr-x 5 root root 76 Sep 4 13:36 data -rwxr-xr-x 1 openlist openlist 135740304 Aug 18 07:28 openlist
进入data目录后,权限如下:
c7bc72bf3129:/opt/openlist/data$ ls -all total 72 drwxr-xr-x 5 root root 76 Sep 4 13:36 . drwxr-xr-x 1 openlist openlist 34 Aug 18 07:29 .. -rw-r--r-- 1 root root 2793 Sep 3 17:26 config.json -rw-r--r-- 1 root root 69632 Sep 4 13:36 data.db drwxr-xr-x 3 root root 20 Jul 24 17:12 files drwxr--r-- 3 root root 34 Aug 4 15:48 log drwxr-xr-x 2 root root 6 Jul 2 14:32 temp
这是不是说,按文档上的通过当前用户启动容器是不会成功,只能使用root用户启动容器才行.
或者说我是那里的配置/环境变量没有指定正确.
以下是宿主机的目录权限:
***@***.***:~/.config/openlist$ ls -all 总计 72 drwxr-xr-x. 5 nas nas 76 9月 4日 21:36 . drwxr-xr-x. 7 nas nas 87 7月 2日 22:20 .. -rw-r--r--. 1 nas nas 2793 9月 4日 01:26 config.json -rw-r--r--. 1 nas nas 69632 9月 4日 21:36 data.db drwxr-xr-x. 3 nas nas 20 7月25日 01:12 files drwxr--r--. 3 nas nas 34 8月 4日 23:48 log drwxr-xr-x. 2 nas nas 6 7月 2日 22:32 temp
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
1 reply
|
后来才知道开发团队引入了新的用户安全体系,问题已经解决,建议后面开发团队在新的页面更新版本说明(开发文档
…------------------ 原始邮件 ------------------
发件人: ILoveScratch ***@***.***>
发送时间: 2025年9月4日 18:11
收件人: OpenListTeam/OpenList ***@***.***>
抄送: lylcc520 ***@***.***>, Author ***@***.***>
主题: Re: [OpenListTeam/OpenList] 最新版本4.1.1无法读取config权限 (Discussion #1103)
不会修复,因为这不属于BUG
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
1 reply
|
要么容器 0:0,要么文件夹1001:1001,随便一种都可,官方是1001 |
0 replies
|
文档如果看不懂,可以看下 USTC 中国科学技术大学提供的 Linux 101 与 Linux 201 手册。 以及, Arch Linux 官方文档。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
从默认的4.1.0版本更新到4.1.1后,容器一直在重启中,通过日志查看确认是容器无法读取配置文件config。导致无法使用
All reactions