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版alist和aria2配合使用 #12

Open
cloudswave opened this issue Dec 9, 2022 · 3 comments
Open

docker版alist和aria2配合使用 #12

cloudswave opened this issue Dec 9, 2022 · 3 comments
Labels
Milestone

Comments

@cloudswave
Copy link
Owner

cloudswave commented Dec 9, 2022

docker run -d --restart=always -v /etc/alist:/opt/alist/data -p 5244:5244 --name="alist" xhofe/alist:latest

docker run -d \
--name aria2 \
--restart unless-stopped \
--log-opt max-size=1m \
-e PUID=$UID \
-e PGID=$GID \
-e UMASK_SET=022 \
-e RPC_SECRET=pac_password \
-e RPC_PORT=6800 \
-e LISTEN_PORT=6888 \
-p 16800:6800 \
-p 16888:6888 \
-p 16888:6888/udp \
-v /root/aria2/config:/config \
-v /etc/alist/temp/downloads:/downloads \
-v /etc/alist/temp/aria2:/opt/alist/data/temp/aria2 \
p3terx/aria2-pro

-v /etc/alist/temp/aria2:/opt/alist/data/temp/aria2 注意这个地方是为了让离线下载路径可以共享,并且只能在同一台服务器上否则离线下载后复制到某个存储下面时会报transfer失败
参考:https://alist.nn.ci/zh/guide/install/docker.html

@cloudswave cloudswave added this to the publish milestone Dec 9, 2022
@WangBoee
Copy link

我的alist 跑在docker,aria2跑在主机,这样怎么设置呢

@cloudswave
Copy link
Owner Author

我的alist 跑在docker,aria2跑在主机,这样怎么设置呢

alist挂载一个路径跟aria2下载路径保持一致即可

@baifengs
Copy link

baifengs commented Mar 15, 2023

群晖系统,在部署docker版的qbittorrent和alist遇到转移失败问题:

pve下的群晖7.1

alist docker 部署:

1. docker run -d \
2. --restart=always \
3. -v /volume2/docker/alist:/opt/alist/data \
4. -v /volume2/docker/alist:/opt/alist/data/temp/qbittorrent \
5. -v /volume2/docker/alist:/opt/alist/data/temp/aria2 \
6. -p 5244:5244 \
7. -e PUID=1026 \
8. -e PGID=100 \
9. -e UMASK=022 \
10. --name="alist" \
11. xhofe/alist:latest

以上alist 会在群晖共享文件夹docker/alist目录下,自动建立/temp/qbittorrent 两层文件夹,包括aria2的,但不会建立/data/temp/qbittorrent文件目录

qbittorrent 部署:


1. docker create \
2. --name=qbittorrent \
3. -e QB_WEBUI_PORT=8090 \
4. -e QB_EE_BIN=false \
5. -e UID=1000 \
6. -e GID=1000 \
7. -e UMASK=022 \
8. -p 58881:58881 \
9. -p 58881:58881/udp \
10. -p 8090:8090 \
11. -v /volume2/docker/qbit/config:/config \
12. -v /volume2/video:/downloads \
13. -v /volume2/docker/alist/temp/qbittorrent:/opt/alist/data/temp/qbittorrent \
14. --restart=always \
15. johngong/qbittorrent:latest

参考了你aria2的:

-v /etc/alist/temp/aria2:/opt/alist/data/temp/aria2 注意这个地方是为了让离线下载路径可以共享,并且只能在同一台服务器上否则离线下载后复制到某个存储下面时会报transfer失败

在alist里设置好qbittorrent离线下载后,可以添加并成功下载,但会下载到/downloads对应的实际群晖目录/volume2/video文件夹,而这个文件夹实际也是我主要用来下载和刮削影响的目录。

alist离线下载成功后,转移失败:

transfer /opt/alist/data/temp/qbittorrent/b933de53-d8a4-4074-97c9-437e2a540ff6/ubuntu-22.10-desktop-amd64.iso to /本地/我的文件/appdata
错误
failed to open file /opt/alist/data/temp/qbittorrent/b933de53-d8a4-4074-97c9-437e2a540ff6/ubuntu-22.10-desktop-amd64.iso: open /opt/alist/data/temp/qbittorrent/b933de53-d8a4-4074-97c9-437e2a540ff6/ubuntu-22.10-desktop-amd64.iso: no such file or directory

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

No branches or pull requests

3 participants