项目作者: ndthuan

项目描述 :
Docker image for Aria2 RPC daemon based on the super lightweight Alpine Linux
高级语言: Shell
项目地址: git://github.com/ndthuan/aria2-alpine.git
创建时间: 2016-08-13T10:48:56Z
项目社区:https://github.com/ndthuan/aria2-alpine

开源协议:

下载


aria2-alpine

Docker image for Aria2 RPC daemon based on the super lightweight Alpine Linux.

Usage

Docker image: ndthuan/aria2-alpine

Example:

  1. docker run --rm -p 6800:6800 --name aria2 -d \
  2. -e RPC_SECRET=xxx \
  3. -v $HOME/Downloads:/downloads \
  4. ndthuan/aria2-alpine

Supported environment variables

First, you might want to check out the comprehensive aria2 configuration docs along with checking env vars supported by this image:

  • DOWNLOAD_DIR: maps to aria2’s —dir config, where inside the container to put your downloads (default: /downloads). You’d rather mount downloads directory on your host to /downloads than changing this default value.
  • CONCURRENT_DOWNLOADS: maps to aria2’s —max-concurrent-downloads, number of concurrent downloads, default: 4.
  • CONNECTIONS_PER_SERVER: maps to aria2 —max-connection-per-server, this affects the SPLIT config down below, default: 4.
  • SPLIT: maps to aria2’s —split, maximum number of active connections when downloading a file, default: 4.
  • USER_AGENT: maps to aria2’s —user-agent, user agent for HTTP(S) downloads, default: empty.
  • FILE_ALLOCATION: file allocation method, read —file-allocation explanation here) default: none.
  • ALLOW_OVERWRITE: maps to aria2’s —allow-overwrite, default: true.
  • AUTO_FILE_RENAMING: maps to aria2’s —auto-file-renaming, default: false.
  • RPC_SECRET: maps to aria2’s —rpc-secret.