RPC_LISTEN_PORT 6800BT_LISTEN_PORT 51413DHT_LISTEN_PORT 51415$ docker build -t="leafney/alpine-aria2" .
$ docker run --name aria2 -p 6800:6800 -p 51413:51413 -p 51415:51415 -d -v /boxvalume/aria2pan:/aria2down leafney/alpine-aria2
You can customize the parameters with -e whitch must be the same to the aria2.conf .
eg : $ docker run ... -e "BT_LISTEN_PORT=5000" ... and the aria2.conf must set : ... listen-port=5000 ...
## 配置信息参考自 http://aria2c.com/usage.html ##
# These settings are the same as those at docker run
dir=/aria2down
rpc-listen-port=6800
listen-port=51413
dht-listen-port=51415
rpc-secret=leafney
continue=true
input-file=/etc/aria2/aria2.session
save-session=/etc/aria2/aria2.session
save-session-interval=60
max-concurrent-downloads=3
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
bt-enable-lpd=true
follow-torrent=true
enable-dht=true
bt-enable-lpd=true
enable-peer-exchange=true
peer-id-prefix=-TR2770-
user-agent=Transmission/2.77
bt-seed-unverified=true
bt-save-metadata=true
Content type
Image
Digest
Size
5.9 MB
Last updated
almost 10 years ago
docker pull leafney/alpine-aria2