Rat's

使用Docker安装OneDrive网盘管理工具PyOne
说明:PyOne程序在之前的文章就介绍过了→点击查看,作者更新挺频繁的,最近增加了多网盘后,用的人也变多了。目前新...
扫描右侧二维码阅读全文
18
2018/11

使用Docker安装OneDrive网盘管理工具PyOne

说明:PyOne程序在之前的文章就介绍过了→点击查看,作者更新挺频繁的,最近增加了多网盘后,用的人也变多了。目前新增加一个离线下载功能,使用的是Aria2,挺给力的。这里博主就提供个Docker镜像,不会手动安装的,可以试试。

更新

【2019.3.13】
更新至4.0
【2018.11.30】
替换Aria2为某大佬编译的多线程版本,其特点可以将下载速度最大化优化。

安装

Github地址:https://github.com/iiiiiii1/Docker-PyOne

1、安装Docker

#CentOS 6
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on

#CentOS 7、Debian、Ubuntu
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker

2、安装PyOne

#拉取Dockerfile相关文件
git clone https://github.com/iiiiiii1/Docker-PyOne.git
#进入文件夹下载Pyone源码
cd Docker-PyOne
git clone https://github.com/abbeyokgo/PyOne.git

如果你要修改PyOne后台密码和增加更多的网盘,可以提前编辑self_config.py.sample,不修改就默认。也可以修改下Aria2配置文件,与路径有关的参数别改,密匙什么的都可以改,不改的话默认moerats

#构建镜像
docker build -t moerats/pyone .
#启动镜像
docker run -d -p 34567:34567 --name pyone moerats/pyone:latest

最后访问ip:34567即可,后台路径/admin,密码PyOne,具体使用方法查看→点击查看;如果你要使用域名访问,可以查看该教程→传送门,直接参考后面的域名访问即可。

#这里也可以通过重启镜像来重启PyOne程序
#启动镜像
docker start pyone
#重启镜像
docker restart pyone

好了,镜像使用包括离线下载暂时测试正常,不过还是建议手动安装,Docker体验稍差。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。
最后修改:2019 年 03 月 13 日 12 : 50 PM

发表评论 取消回复

25 条评论

  1. andere.strikingly.com

    Valuable tips. Appreciate it.

  2. lll

    _files.extend(list_all_files(path))
    File "/root/PyOne/function.py", line 450, in list_all_files
    shutil.move(rootdir,newf)
    File "/usr/local/lib/python2.7/shutil.py", line 313, in move
    copytree(src, real_dst, symlinks=True)
    File "/usr/local/lib/python2.7/shutil.py", line 191, in copytree
    os.makedirs(dst)
    File "/usr/local/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
    OSError: [Errno 2] No such file or directory: '/proc/irq/11/uhci_hcdusb1'
    你好,我使用的宝塔,出了奇怪的问题,谢谢!

    1. Rat's
      @lll

      这个貌似用不了了。

  3. Joe

    Step 1/12 : FROM python:2.7.15-stretch
    Trying to pull repository docker.io/library/python ...
    2.7.15-stretch: Pulling from docker.io/library/python
    741437d97401: Pull complete
    34d8874714d7: Pull complete
    0a108aa26679: Pull complete
    7f0334c36886: Pull complete
    49ea0d2b5c48: Pull complete
    2f697d8eb8c9: Pull complete
    19e57c082018: Pull complete
    62a638f5d7ed: Pull complete
    5bceaf33fb03: Pull complete
    Digest: sha256:8a7920f2f545d989f27887ca8b066249656d3b86be1e08ca41e5a2fd3c49d92b
    Status: Downloaded newer image for docker.io/python:2.7.15-stretch
    ---> afc94ac1e19b
    Step 2/12 : WORKDIR /
    ---> 3260ccfe5a83
    Removing intermediate container 5a1a06bc0eeb
    Step 3/12 : RUN mkdir -p /root/PyOne /data/db /data/log /data/aria2/download && touch /data/aria2/aria2.session
    ---> Running in 64e3ec5dd0ef

    ---> 0a79337c38a6
    Removing intermediate container 64e3ec5dd0ef
    Step 4/12 : COPY PyOne/ /root/PyOne
    lstat PyOne/: no such file or directory
    大佬,构建错误耶,这个是怎么回事呀?

    1. Rat's
      @Joe

      你有没有进行这一步,git clone https://github.com/abbeyokgo/PyOne.git

      1. Joe
        @Rat's

        是的,谢了!

  4. winner

    安装成功后使用离线下载功能的时候提示以下信息:Aria2未验证!请检查Aria2信息!

    1. Rat's
      @winner

      系统设置那里的Aria2密码没填?

  5. 子安

    重启后502,手动运行docker pyone,显示500,怎么解决呢 ,请教大佬

    1. Rat's
      @子安

      500一般是数据库问题,有空我检查下吧。

      1. Joe
        @Rat's

        问题应该是出在一开始进管理界面的系统安装这一步,要验证MongoDB信息配置是否正确。不知道正确的应该是填什么。

        1. Rat's
          @Joe

          数据库和redis直接默认就行

  6. 子安

    大佬,请问服务器重启后502错误怎么解决

  7. cc

    aira2 未检测到 请问 怎么访问aria2的6800端口呢 貌似没有映射端口

    1. Rat's
      @cc

      aria2在容器内部,外部是检测不到的。

  8. bookyue

    W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

    E: Some index files failed to download. They have been ignored, or old ones used instead.

    博主,直接构建镜像的时候报错
    环境:Ubuntu 16.04.6 LTS KVM

    1. Rat's
      @bookyue

      修复了,删掉下载的源码,重新拉取安装就好了

  9. 234

  10. canadian online pharmacy

    Many thanks, Quite a lot of postings!