Giter Site home page Giter Site logo

Comments (2)

Genteure avatar Genteure commented on June 8, 2024 2

通过环境变量制定 UID GID 是在容器镜像里实现的功能,不是 docker 提供的通用功能,录播姬的镜像从来都没有读取环境变量切换用户的功能。

你可以使用 docker 提供的 --user 参数设置容器启动时使用的 UID 和 GID。

你说的通过环境变量设置,是 docker 首先用默认的 uid=0,gid=0 也就是 root:root 启动容器,容器内的脚本再自行读取环境变量切换用户。如果你用的是 linuxserver.io 提供的 qbittorrent 镜像的话,它设置 UID/GID 的脚本源码在这里: https://github.com/linuxserver/docker-baseimage-alpine/blob/1bfc5cb7a7f5414b0f0672ae2c3d0e601314091d/root/etc/s6-overlay/s6-rc.d/init-adduser/run

from bililiverecorder.

BeyondandSharp avatar BeyondandSharp commented on June 8, 2024

谢谢解答,非常全面!网上查的都是在环境变量里面指定,你这么一说我突然想起来之前是使用 docker compose 创建的录播姬。感谢!

from bililiverecorder.

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.