Sign inSign up

dgibbons/aria2

By dgibbons

Updated almost 6 years ago

aria2

Image
0

882

dgibbons/aria2 repository overview

Aria2 Pro

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

A perfect Aria2 Docker image.

Read the details in my blog (in Chinese) | 中文教程

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 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/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

Parameters

ParameterFunction
-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 RPC_SECRET=<TOKEN>Set RPC secret authorization token. Ignoring it can be set in the configuration file.
-e TZ=Asia/ShanghaiSpecify a timezone to use e.g. Asia/Shanghai
-e RPC_PORT=6800Set up RPC listen port
-p 6800:6800bind RPC listen port
-e LISTEN_PORT=6888Set up listen port
-p 6888:6888Bind BT listen port (TCP)
-p 6888:6888/udpBind DHT lisen port (UDP)
-v $PWD/aria2-config:/configContains all relevant configuration files.
-v $PWD/downloads:/downloadsLocation of downloads on disk.
-e UPDATE_TRACKERS=falseDisable BT tracker update, use this parameter if you need PT download.
-e DISK_CACHE=<SIZE>Set up disk cache. SIZE can include K or M (1K = 1024, 1M = 1024K), e.g 64M. Ignoring it can be set in the configuration file.

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

Tag summary

Content type

Image

Digest

Size

11.3 MB

Last updated

almost 6 years ago

docker pull dgibbons/aria2