[关闭]
@zwh8800 2016-05-13T15:08:31.000000Z 字数 1236 阅读 328006

迅雷远程下载 xware-docker 镜像

blog xware docker 迅雷 远程下载


迅雷为广大路由器爱好者,nas爱好者,服务器爱好者提供了一个很好的平台--xware 远程下载。只需要很简单的就能部署到你的路由器、树莓派之类的闲置机器上,然后只需要通过网站 http://yuancheng.xunlei.com/ 就能远程提交下载任务,无论你是在公司还是外出。当你回到家里时,疲惫的打开电视,发现你想看的影片已经下载到服务器中了。简直是高清爱好者的福音。其实迅雷的 xware 部署起来已经很方便了,但是我为了更方便的启停服务就做了个 docker 镜像。

地址在这里: https://hub.docker.com/r/zwh8800/xware/


使用方法

首先,拉取我的xware for docker

  1. docker pull zwh8800/xware

之后,启动它,需要指定一个 volume 挂在到 /data ,xware 所有下载的东西会保存到这个 volume 中。否则下载的东西会保存到容器中。

  1. docker run --security-opt=seccomp:unconfined --name xware -v /var/lib/xware/:/data -d zwh8800/xware

之后,第一次运行 xware 需要绑定一下你的迅雷账号,执行

  1. docker logs xware

会看到类似

  1. initing...
  2. try stopping xunlei service first...
  3. killall: ETMDaemon: no process killed
  4. killall: EmbedThunderManager: no process killed
  5. killall: vod_httpserver: no process killed
  6. setting xunlei runtime env...
  7. port: 9000 is usable.
  8. YOUR CONTROL PORT IS: 9000
  9. starting xunlei service...
  10. Connecting to 127.0.0.1:9000 (127.0.0.1:9000)
  11. setting xunlei runtime env...
  12. port: 9000 is usable.
  13. YOUR CONTROL PORT IS: 9000
  14. starting xunlei service...
  15. getting xunlei service info...
  16. THE ACTIVE CODE IS: vghqnv
  17. go to http://yuancheng.xunlei.com, bind your device with the active code.
  18. finished.

的内容,把 active code 复制一下,打开 http://yuancheng.xunlei.com 点击 我的下载器 旁边的 添加 把 active code 输入进去。


添加


激活码

然后,就可以使用了。

最后,最好在你的 /etc/rc.local 中添加上开机启动:

  1. docker start xware

这样,down机重启后也会自动打开xware。


have fun

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注