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.
- Easily configurable via host-mounted config file
- Download session persistence
- RPC support with secret
- Automatic Docker Hub publishing via GitHub Actions
- Both
latestand versioned tags
git clone https://github.com/mfa777/my-aria2.git
cd my-aria2- Edit
config/aria2.confand change the rpc-secret password. - Edit
docker-compose.ymlto set the download path on host.
sudo docker compose up -dWhen using an RPC client (like AriaNg), connect to:
http://<your_host_ip>:6800/jsonrpc- Use your
rpc-secretas the token.
This project uses GitHub Actions to build and push Docker images to Docker Hub on every commit and tag.
- Create a Docker Hub access token.
- In your GitHub repository, go to
Settings > Secrets and variables > Actions. - Add secrets:
DOCKERHUB_USERNAME: your Docker Hub usernameDOCKERHUB_TOKEN: your access token
- On every commit to
main, GitHub Actions pushes:youruser/aria2:latestyouruser/aria2:<short-sha>
- On every git tag (e.g.
v1.2.3), it also pushes:youruser/aria2:v1.2.3
git tag v1.0.0
git push origin v1.0.0docker pull youruser/aria2:latest
docker pull youruser/aria2:v1.0.0MIT
Inspired by aria2 and Docker best practices.