项目作者: FlyersWeb

项目描述 :
Aria2 Dockerized
高级语言: Shell
项目地址: git://github.com/FlyersWeb/docker-aria2.git
创建时间: 2016-06-05T16:43:38Z
项目社区:https://github.com/FlyersWeb/docker-aria2

开源协议:

下载


docker-aria2

Build

To build the image use:

docker build -t aria2:lastest --no-cache -f Dockerfile .

Test

To test download is working:

docker run -it aria2:lastest aria2c --conf-path="/etc/aria2/aria2.conf" http://websitetips.com/articles/copy/lorem/ipsum.txt

Docker-compose

A docker-compose example usage :

  1. aria2:
  2. # image name in docker hub
  3. image: flyersweb/aria2
  4. # name on local machine
  5. container_name: aria2
  6. # should restart on errors
  7. restart: always
  8. # define an owner for downloaded file
  9. environment:
  10. - FUID=1003
  11. - FGID=1003
  12. volumes:
  13. # finished downloads
  14. - /tmp/Download:/dataComplete
  15. # on going downloads
  16. - /tmp/OnDownload:/data
  17. # override with local config
  18. - ./config/aria2:/etc/aria2
  19. # for RPC communication you should open this port
  20. ports:
  21. - "6800:6800"