【发布时间】:2021-08-15 15:18:28
【问题描述】:
以下内容来自https://www.jenkins.io/doc/book/installing/docker/。 我在代理后面工作。 最后一条语句 RUN jenkins-plugin-cli --plugins "blueocean:1.24.7 docker-workflow:1.26" 不管用。有什么解决办法。
FROM jenkins/jenkins:2.289.3-lts-jdk11
USER root
RUN apt-get update && apt-get install -y apt-transport-https \
ca-certificates curl gnupg2 \
software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN apt-key fingerprint 0EBFCD88
RUN add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable"
RUN apt-get update && apt-get install -y docker-ce-cli
USER jenkins
RUN jenkins-plugin-cli --plugins "blueocean:1.24.7 docker-workflow:1.26"
【问题讨论】:
标签: jenkins dockerfile