• Stars
    star
    2,919
  • Rank 15,448 (Top 0.4 %)
  • Language
    Dockerfile
  • License
    MIT License
  • Created over 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Aria2 Pro | A perfect Aria2 Docker image | 更好用的 Aria2 Docker 容器镜像

English | 中文

Aria2 Pro Docker

LICENSE GitHub Stars GitHub forks Docker Stars Docker Pulls GitHub Workflow Status

A perfect Aria2 Docker image. Out of the box, just add download tasks and don't need to think about anything else.

Features

  • Supported platforms: amd64, i386, arm64, arm/v7, arm/v6
  • Full Function: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP
  • max-connection-per-server unlimited.
  • retry on slow speed (lowest-speed-limit) and connection close
  • High BT download rate and speed
  • Get BitTorrent tracker automatically
  • Download error automatically delete files
  • Download cancel automatically delete files
  • Automatically clear .aria2 suffix files
  • Automatically clear .torrent suffix files
  • No lost task progress, no repeated downloads
  • And more powerful features

Usage

Docker CLI

  • No matter what architecture platform is used, just use the following command to start the container ( Just need to replace the <TOKEN> field ):
docker run -d \
    --name aria2-pro \
    --restart unless-stopped \
    --log-opt max-size=1m \
    -e PUID=$UID \
    -e PGID=$GID \
    -e UMASK_SET=022 \
    -e RPC_SECRET=<TOKEN> \
    -e RPC_PORT=6800 \
    -p 6800:6800 \
    -e LISTEN_PORT=6888 \
    -p 6888:6888 \
    -p 6888:6888/udp \
    -v $PWD/aria2-config:/config \
    -v $PWD/aria2-downloads:/downloads \
    p3terx/aria2-pro
  • Then you need a WebUI for control, such as AriaNg. This link is provided by the developer and can be used directly. Or use Docker to deploy it yourself:
docker run -d \
    --name ariang \
    --log-opt max-size=1m \
    --restart unless-stopped \
    -p 6880:6880 \
    p3terx/ariang

TIPS: It is important for the firewall to open ports.

Docker Compose

wget git.io/aria2-pro.yml
  • Edit Compose file
vim aria2-pro.yml
  • Compose up
docker-compose -f aria2-pro.yml up -d

Other

Parameters

Parameter Function
-e PUID=$UID
-e PGID=$GID
Bind UID and GID to the container, which means you can use a non-root user to manage downloaded files.
-e UMASK_SET=022 For umask setting of Aria2, optional , default if left unset is 022
-e RPC_SECRET=<TOKEN> Set RPC secret authorization token. Default: P3TERX
-e RPC_PORT=6800 Set RPC listen port.
-p 6800:6800 bind RPC listen port.
-e LISTEN_PORT=6888 Set TCP/UDP port number for BitTorrent/DHT listen.
-p 6888:6888 Bind BT listen port (TCP).
-p 6888:6888/udp Bind DHT lisen port (UDP).
-v <PATH>:/config Contains all relevant configuration files.
-v <PATH>:/downloads Location of downloads on disk.
-e DISK_CACHE=<SIZE> Set up disk cache. SIZE can include K or M (1K = 1024, 1M = 1024K), e.g 64M.
-e IPV6_MODE=<BOOLEAN> Whether to enable IPv6 support for Aria2. Optional: true or false. Set the options disable-ipv6=false and enable-dht6=true in the configuration file(aria2.conf).
-e UPDATE_TRACKERS=<BOOLEAN> Whether to update BT Trackers List automatically. Optional: true or flase, default if left unset is true
-e CUSTOM_TRACKER_URL=<URL> Custom BT Trackers List URL. If not set, it will be get from https://trackerslist.com/all_aria2.txt.
-e TZ=Asia/Shanghai Specify a timezone to use e.g. Asia/Shanghai

Advanced

I am working hard on my English, so this part may be explained in detail later. If you can read Chinese, read the details in my blog.

Credits

License

MIT © P3TERX

More Repositories

1

Actions-OpenWrt

A template for building OpenWrt with GitHub Actions | 使用 GitHub Actions 在线云编译 OpenWrt 固件
Shell
6,919
star
2

warp.sh

Cloudflare WARP Installer | WARP 一键安装脚本
Shell
3,571
star
3

aria2.conf

Aria2 配置文件 | OneDrive & Google Drvive 离线下载 | 百度网盘转存
Shell
3,079
star
4

aria2.sh

Aria2 一键安装管理脚本 增强版
Shell
2,789
star
5

GeoLite.mmdb

MaxMind's GeoIP2 GeoLite2 Country, City, and ASN databases
1,518
star
6

Aria2-Pro-Core

Aria2 static binaries for GNU/Linux with some powerful feature patches. | 破解无限线程 防掉线程优化 静态编译 二进制文件 增强版
Shell
367
star
7

IBM-CF-V2

Use GitHub Actions to automatically deploy the latest version of V2Ray to IBM Cloud Foundry
206
star
8

openwrt-build-env

OpenWrt build environment in docker | Docker 中的 OpenWrt 编译环境
Dockerfile
104
star
9

ServerStatus-V

云探针、多服务器探针、云监控、多服务器云监控
C
101
star
10

ssh2actions

Connect to GitHub Actions VM via SSH for interactive debugging
Shell
84
star
11

wireguard-go-builder

Compiling the wireguard-go binary from source. With this binary, users are able to create WireGuard sessions without installing the kernel module.
Shell
66
star
12

SSH_Key_Installer

Install SSH keys via GitHub, URL or local files
Shell
65
star
13

script

Some shell script
Shell
54
star
14

ActionsVM

Connect to GitHub Actions via SSH, get macOS or Linux VM for free.
Shell
40
star
15

unraid-docker-templates

Templates for adding containers to UNRAID via more GUI-friendly way and allowing easier updates in the future.
26
star
16

goindex_backup

Google Drive Directory Index backup
JavaScript
17
star
17

doubi_backup

Shell
11
star
18

openwrt-list

10
star
19

P3TERX

8
star
20

BestTrace

Shell
5
star
21

ca-certificates.crt

Make ca-certificates.crt daily via GitHub Actions
Shell
5
star
22

termux.sh

Shell
4
star
23

ariang

3
star
24

ubuntu-plus

Ubuntu image with some extra packages
Dockerfile
3
star
25

Gitpod-OpenWrt

OpenWrt build environment in Gitpod
Dockerfile
2
star