Removed user switching from Dockerfile
This commit is contained in:
parent
aa77383c56
commit
c102955f53
@ -1,5 +1,4 @@
|
|||||||
FROM jenkins/ssh-agent
|
FROM jenkins/ssh-agent
|
||||||
USER root
|
|
||||||
|
|
||||||
RUN groupadd -g 281 docker
|
RUN groupadd -g 281 docker
|
||||||
RUN usermod -aG docker jenkins
|
RUN usermod -aG docker jenkins
|
||||||
@ -20,5 +19,3 @@ RUN echo \
|
|||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y docker-ce-cli
|
RUN apt-get install -y docker-ce-cli
|
||||||
|
|
||||||
USER jenkins
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user