`xhofe/alist-aria2`镜像使用非root用户时aria2有目录权限问题
Opened this issue · 1 comments
hzj629206 commented
Please make sure of the following things
-
I have read the documentation.
我已经阅读了文档。 -
I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。 -
I'm sure it's due to
AList
and not something else(such as Network ,Dependencies
orOperational
).
我确定是AList
的问题,而不是其他原因(例如网络,依赖
或操作
)。 -
I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
v3.37.4
Driver used / 使用的存储驱动
N.A
Describe the bug / 问题描述
xhofe/alist-aria2
镜像使用非 root 用户时 aria2 有目录权限问题
如果用 PUID 和 PGID 环境变量指定非 root 用户的 UID 和 GID,entrypoint.sh
里面启动 aria2 的命令会报错,aria2 无法正常启动。
这里因为 aria2 需要读写 /root
目录,默认情况下其它用户没有访问权限。
可以在 Dockfile 里面用以下命令授权。
chmod a+x /root
chmod -R a+r,a+w /root/.aria2c
Reproduction / 复现链接
N.A
Config / 配置
N.A
Logs / 日志
No response
welcome commented
Thanks for opening your first issue here! Be sure to follow the issue template!