Skip to content

Minimal, configurable Docker image for aria2 with persistent config/session, RPC support, and automated multi-architecture builds (amd64/arm64) with Docker Hub publishing.

Notifications You must be signed in to change notification settings

mfa777/my-aria2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project provides a simple, configurable Docker image for aria2, supporting persistent config and session storage, and automatic publish to Docker Hub with latest and version tags.

Features

  • Easily configurable via host-mounted config file
  • Download session persistence
  • RPC support with secret
  • Automatic Docker Hub publishing via GitHub Actions
  • Both latest and versioned tags

Getting Started

1. Clone This Repository

git clone https://github.com/mfa777/my-aria2.git
cd my-aria2

2. Set Up Configuration

  • Edit config/aria2.conf and change the rpc-secret password.
  • Edit docker-compose.yml to set the download path on host.

3. Run Docker Compose

sudo docker compose up -d

4. Connect via RPC

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

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

For Developer Only

Publishing to Docker Hub Automatically

This project uses GitHub Actions to build and push Docker images to Docker Hub on every commit and tag.

Setup Steps:

  1. Create a Docker Hub access token.
  2. In your GitHub repository, go to Settings > Secrets and variables > Actions.
  3. Add secrets:
    • DOCKERHUB_USERNAME: your Docker Hub username
    • DOCKERHUB_TOKEN: your access token

Tagging for Docker Hub Publish

  • On every commit to main, GitHub Actions pushes:
    • youruser/aria2:latest
    • youruser/aria2:<short-sha>
  • On every git tag (e.g. v1.2.3), it also pushes:
    • youruser/aria2:v1.2.3

To Release a Version:

git tag v1.0.0
git push origin v1.0.0

Example: Pulling from Docker Hub

docker pull youruser/aria2:latest
docker pull youruser/aria2:v1.0.0

License

MIT

Credits

Inspired by aria2 and Docker best practices.

About

Minimal, configurable Docker image for aria2 with persistent config/session, RPC support, and automated multi-architecture builds (amd64/arm64) with Docker Hub publishing.

Resources

Stars

Watchers

Forks

Packages

No packages published