Replies: 1 comment
|
You do not need Create a derived image and use root only during the image build: FROM openlistteam/openlist:latest
USER root
COPY company-ca.crt /usr/local/share/ca-certificates/company-ca.crt
RUN update-ca-certificates
USER openlistBuild that image and reference it from Compose instead of This preserves the upstream non-root runtime. The OpenList base image already includes References: OpenList creates and selects the unprivileged runtime user, and its base image installs |
Uh oh!
There was an error while loading. Please reload this page.
使用 docker 进行部署,同时有一个存储需要通过自签名证书访问,尝试替换 entrypoint.sh 运行,但是无法执行 sudo 命令,因为 user 已经被替换成了非特权用户
难道只能改 Dockerfile 了吗?
All reactions