Git Product home page Git Product logo

Comments (10)

monkeyWie avatar monkeyWie commented on June 29, 2024

有什么建议吗

from gopeed.

michaelauto avatar michaelauto commented on June 29, 2024

有什么建议吗

能力有限,可以参考下Filebrowser的做法,我已经在gopeed试过,没有效果

运行时添加用户参数 user: "${UID}:${GID}"

from gopeed.

ilkeiii avatar ilkeiii commented on June 29, 2024

有什么建议吗

可以参考alist的dockerfile
https://github.com/alist-org/alist/blob/main/Dockerfile
https://github.com/alist-org/alist/blob/main/entrypoint.sh

from gopeed.

michaelauto avatar michaelauto commented on June 29, 2024

有什么建议吗

可以参考alist的dockerfile https://github.com/alist-org/alist/blob/main/Dockerfile https://github.com/alist-org/alist/blob/main/entrypoint.sh

是创建镜像的时候设定非root,并在启动的时候设置umask吗?

from gopeed.

ilkeiii avatar ilkeiii commented on June 29, 2024

有什么建议吗

可以参考alist的dockerfile https://github.com/alist-org/alist/blob/main/Dockerfile https://github.com/alist-org/alist/blob/main/entrypoint.sh

是创建镜像的时候设定非root,并在启动的时候设置umask吗?

应该是在容器启动的时候把所有要用到的的内容都设定指定的用户用户组,设定umask,最后指定用户用户组运行程序

from gopeed.

michaelauto avatar michaelauto commented on June 29, 2024

有什么建议吗

可以参考alist的dockerfile https://github.com/alist-org/alist/blob/main/Dockerfile https://github.com/alist-org/alist/blob/main/entrypoint.sh

是创建镜像的时候设定非root,并在启动的时候设置umask吗?

应该是在容器启动的时候把所有要用到的的内容都设定指定的用户用户组,设定umask,最后指定用户用户组运行程序

能麻烦您构建个修改后的镜像吗?

from gopeed.

ilkeiii avatar ilkeiii commented on June 29, 2024

有什么建议吗

可以参考alist的dockerfile https://github.com/alist-org/alist/blob/main/Dockerfile https://github.com/alist-org/alist/blob/main/entrypoint.sh

是创建镜像的时候设定非root,并在启动的时候设置umask吗?

应该是在容器启动的时候把所有要用到的的内容都设定指定的用户用户组,设定umask,最后指定用户用户组运行程序

能麻烦您构建个修改后的镜像吗?

废了老劲构建好了,只构建了linux/amd64版本,注意不要修改软件里的下载目录,会有权限问题,顺便看看有没有bug
https://hub.docker.com/r/ilkeiii/gopeed

from gopeed.

monkeyWie avatar monkeyWie commented on June 29, 2024

@ilkeiii 可以提交个pr吗

from gopeed.

ilkeiii avatar ilkeiii commented on June 29, 2024

@ilkeiii 可以提交个pr吗

我提交了,你看看有问题吗,这个还有一个问题,使用普通用户运行程序后,因为你下载目录默认实在root目录里他没权限,会自动改到根目录下Downloads下,我就在根目录创建了Downloads目录并修改权限作为新的默认下载目录,而且不能随便改,改了就可能会有权限问题

from gopeed.

Related Issues (20)

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.