Sign inSign up

mfa777/my-aria2

By mfa777

Updated over 1 year ago

Minimal, configurable Docker image for aria2 with persistent config/session, RPC support.

Image
Networking
0

1.1K

mfa777/my-aria2 repository overview

Minimal, configurable Docker image for aria2 with persistent config/session, RPC support, and compatibility with multiple architectures (amd64/arm64).

Set Up Configuration on Host
  • Create ./config/aria2.conf and change the rpc-secret password.
  • Create ./config/aria2.session file and leave it empty.
  • Create ./docker-compose.yml to set the download path.
File structure
.
├── config
│   ├── aria2.conf
│   └── aria2.session
├── docker-compose.yml
└── downloads
Config File Sample
#./config/aria2.conf

# Download directory
dir=/downloads

# Session settings
input-file=/config/aria2.session
save-session=/config/aria2.session
save-session-interval=60

# Continue downloads
continue=true

# RPC settings
enable-rpc=true
rpc-listen-all=true
rpc-allow-origin-all=true
rpc-secret=YOUR_SECRET_HERE

# Other useful options
max-concurrent-downloads=1
max-connection-per-server=5
split=5
Docker Compose Config
services:
  aria2:
    image: mfa777/my-aria2:latest
    container_name: aria2
    restart: unless-stopped
    ports:
      - "6800:6800"
    volumes:
      - ./config:/config
      - ./downloads:/downloads
    environment:
      - TZ=UTC
    logging:
      options:
        max-size: 1m
Start Container

sudo docker compose up -d

Connect from client

When using an RPC client (like AriaNg), connect to:

http://<your_host_ip>:6800/jsonrpc Use your rpc-secret as the token.

Github

https://github.com/mfa777/my-aria2

Tag summary

Content type

Image

Digest

sha256:f3764f15a

Size

9.3 MB

Last updated

over 1 year ago

docker pull mfa777/my-aria2