-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
指定PGID和PUID后Aria2无法运行 #4
Comments
请问这个Aria2 RPC 密钥 多少,可以怎么查? |
已搞懂了,网络按bridge部署,进入log可以看到密码,在host部署确不用密码~~没法找到配置文件 |
在alist里挂载本地硬盘,然后可以从那里边找到aria2.conf文件 |
指定PGID和PUID后Aria2无法运行,从top看貌似变成了僵尸进程,单独挂载/root/.aria2出来也不行 |
me too |
进入容器的shell,在entrypoint.sh文件里面,把exec su-exec ${PUID}:${PGID} nohup aria2c改成exec su-exec 0:0 nohup aria2c,即可顺利启动aria2。 |
我使用覆盖entrypoint结合command参数的方式修改了aria2数据文件路径及权限,这样可以在更改uid gid情况下尽量不修改镜像启动成功 ...
alist:
image: xhofe/alist-aria2
entrypoint: "/bin/sh"
command: |
-c "\
mkdir -p /opt/aria2;
mv /root/.aria2/* /opt/aria2;
chown -R $$PUID:$$PGID /opt/aria2;
find /opt/aria2 -type f -exec sed -i 's/\/root\/\.aria2/\/opt\/aria2/g' {} \;
sed -i 's/\/root\/\.aria2/\/opt\/aria2/g' /entrypoint.sh;
/entrypoint.sh"
environment:
- PUID=$UID
- PGID=$GID
... |
指定PGID和PUID后,Aria2无法运行,日志显示Aria2 not ready.
改了一下 entrypoint.sh 输出了一下Aria2的日志,显示
Configuration file /root/.aria2/aria2.conf is not found.
可能是无权限访问 /root 导致的?
The text was updated successfully, but these errors were encountered: