拓冰建站拓冰建站
首页 / 资讯中心 / 正文

Sdbusplus(Linux开发未分类):搭建Docker开发环境3 设置登录用户

Docker:搭建Sdbusplus库开发环境2 编译Sdbusplus库-CSDN博客容器是root身份登录的,但是有的时候,我们需要以不同的用户身份进行登录,以设置文件的归属者。1.新建目录build_user,并进入目录。2.在目录中新建文件DockerfileFROM ubuntu:sdbusplus ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ apt-get install -y --no-install-recommends wget ca-certificates gnupg2 adduser \ rm -rf /var/lib/apt/lists/* # Install gosu for privilege drop (lightweight, reliable) RUN set -eux; \ wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/latest/download/gosu-amd64"; \ chmod +x /usr/local
分享:

看完干货,该让你的企业上线了

免费需求沟通 · 48 小时内出具建站方案 · 河南本地可上门