AlistGo / AlistGo/alist

xhofe/alist-aria2 docker容器的aria2c不能自动启动

Open
#7,679 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
50.2k
Forks
7.9k
Avg merge
7d 21h
Merged PRs (30d)
6

Description

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [ ] 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](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

- [X] I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。

### AList Version / AList 版本

v3.41.0

### Driver used / 使用的存储驱动

似与此无关

### Describe the bug / 问题描述

因为新挂载为本机存储的一些目录需要用一特定的宿主机用户访问,因此调整了容器运行时的PUID和PGID(以前是0,现在是另一个数),此外无其它更改。

修改设置后容器本身可启动,alist工作正常,但aria2c不能自动启动。

原因似与那个PUID有关:/entry.sh里启动aria2c的那句exec su-exec ${PUID}:${PGID} nohup aria2c ..... ,如果设置了非0的PUID,则在容器里这个PUID的用户会因无法访问 /root/.aria2/aria2.conf 而导致aria2c运行失败。

但是我需要那个PUID访问宿主机文件……我该如何解决呢?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.