📜  docker in docker 权限 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:31.998000             🧑  作者: Mango

代码示例1
ARG DOCKER_GID=993
#setup host docker group UID to jenkins docker group UID
RUN groupadd -g ${DOCKER_GID} docker \
  && curl -sSL https://get.docker.com/ | sh \
  && apt-get -q autoremove \
  && apt-get -q clean -y \
  && rm -rf /var/lib/apt/lists/* /var/cache/apt/*.bin 

RUN usermod -aG docker jenkins