alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
41.92k stars 5.41k forks source link

离线下载的暂存路径是否有更好的方案 #7063

Open Huiyicc opened 3 weeks ago

Huiyicc commented 3 weeks ago

Please make sure of the following things

Description of the feature / 需求描述

alist使用aria2或者bt等离线下载时会修改默认下载地址为alist/data/temp下,此时如果是物理机还好,可以将temp挂载到大容量分区,但是如果此时使用的是docker容器,会出现如下情况:

Suggested solution / 实现思路

想要解决依旧是手动将系统上相对于容器的temp路径挂载到其他分区,这个是否有更好的解决方案 例如配置内指定暂存目录或者使用下载器的默认目录?

Additional context / 附件

No response

welcome[bot] commented 3 weeks ago

Thanks for opening your first issue here! Be sure to follow the issue template!

anwen-anyi commented 3 weeks ago

我不太会用docker,Docker没记错的话可以映射多个路径吧?你映射几个大容量分区的就好?

Huiyicc commented 3 weeks ago

我不太会用docker,Docker没记错的话可以映射多个路径吧?你映射几个大容量分区的就好?

目前确实是这样,用的是1panel提供的容器,我需要在fstab内挂载这两个路径,还是挺麻烦的,配置之前离线下载一个镜像塞满了整个系统分区给我干蒙了😢 image