Skip to content
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

Docker Image 要修改下目录 #2083

Open
cnhap opened this issue May 21, 2024 · 1 comment
Open

Docker Image 要修改下目录 #2083

cnhap opened this issue May 21, 2024 · 1 comment

Comments

@cnhap
Copy link

cnhap commented May 21, 2024

aria2 的目录是/downloads 不是/data 请看下面的完单
https://p3terx.com/archives/docker-aria2-pro.html

官网指导的目录是- temp_data:/data 造成怎么部署出来离线下载就是各种报错 尝试了几天终于发现这个问题.不是人人都是开发人员,都能一样看出来问题再哪里. 离线下载配置的时候要填路径,这个路径要是2个容器都可以访问的,并且是相同名字的.

https://docs.cloudreve.org/getting-started/install

@lightbearer1
Copy link

感谢提醒。我也遇到了这个错误,我一开始仅仅以为是cloudreve的目录映射问题,导致的docker里cloudreve无法获取宿主机对应目录的文件,结果怎么调试都报错,原来是忘了aria2也在docker里。。。

补充说明一下,假如aira2的下载目录为/downloads,映射的宿主机目录为/data/aria2/downloads,如果要配置cloudreve的离线下载目录,那么最好也使用/downloads,并且cloudreve映射宿主机的目录也要为/data/aria2/downloads.
简单来说,如果你想用/A作为cloudreve离线下载目录,映射宿主机目录为/B,那么你必须保证aria2中同样存在目录/A,且映射到了宿主机的相同目录/B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants