Code Monkey home page Code Monkey logo

docker_115pc's Introduction

115网盘Linux版本的Docker封装

Docker Automated build

紧急提示

我发现在使用一段时间后,会出现无法继续使用的问题。

最近终于抽出时间仔细看了一下,临时的解决方法就是把Web浏览器中的115pc相关的Cookie清除掉。

操作方法比如:https://support.google.com/chrome/answer/95647

docker pull jlesage/baseimage-gui:debian-10-v4.5

拉取镜像

docker pull funcman/115pc:latest

创建容器

docker create   --name=115pc                                    \
                -p 11580:5800                                   \
                -p 11591:5900                                   \
                -v <YourConfigDir>:/config                      \
                -v <YourDownloadDir>:/Downloads/115download     \
                --restart always                                \
                funcman/115pc:latest

启停

docker start 115pc
docker stop 115pc

启动之后,可通过 http://<ip>:11580进行访问

参数

名称 说明
APP_NAME 应用名称,默认:115pc
APP_VERSION 指定115客户端版本号,默认:2.0.8.5
USER_ID 指定容器内的用户ID,默认:root
GROUP_ID 指定容器内的组ID,默认:root
ENABLE_CJK_FONT 默认:1,不建议修改
DISPLAY_WIDTH 应用界面宽度,默认:1920
DISPLAY_HEIGHT 应用界面高度,默认:1080
APT_SOURCE_HOST Apt更新源地址,默认为科技大镜像:mirrors.ustc.edu.cn

更多参数设置,请参考:https://github.com/jlesage/docker-baseimage-gui

注意事项

  1. 考虑到Docker运行的特殊性,在每次容器启动时,都会改回下载路径设置,以达到固化路径的作用。
  2. 同时由于v1.0.6.7这个版本(后期版本未特别验证,至少到v2.0.8.5依然如此)115客户端,默认的设置中,下载路径有多余的换行符,亦使用强制改回配置的方式实现。
  3. 副作用是其他设置也会被一并改回,若有特殊需求,请自行修改代码。
  4. 由于jlesage/baseimage-gui默认情况下,在容器内使用app用户运行程序,会造成115客户端无权限使用默认下载路径。
  5. 采用修改参数USER_IDGROUP_IDroot的手法,解决了事项4的问题,目前没找到更好的方法。
  6. 由于默认使用了root用户,导致115客户端下载的文件的权限在其他用户面前为只读,所以尽量使用115客户端删除下载文件。
  7. 不支持115客户端的在线升级,主要是因为升级过程中需要输入115所在主机系统的登录密码,但是输入设置的密码会提示密码不正确。

感谢

  • jlesage/baseimage-gui提供的X图形应用容器基础镜像,使用它可以轻松将Linux图形应用程序以Web和VNC的方式使用。
  • CALTyang制作的115pc-docker,我这里fork了他的代码,并进一步折腾解决了一些小问题,收获很多。

docker_115pc's People

Contributors

funcman avatar cnpilot avatar caltyang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.