创建用户(Docker组)
username=aria2
sudo useradd -m ${username}
sudo bash -c "echo '123456' | passwd --stdin ${username}"
sudo gpasswd -a ${username} docker
newgrp docker
安装Aria2 Pro
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
更新tracker
sudo su aria2 -
cd ~/aria2-config/
bash script/tracker.sh
安装AriaNg
docker run -d
--name ariang
--log-opt max-size=1m
--restart unless-stopped
-p 6880:6880
p3terx/ariang