Fixed docker command permission denied error while building (#1822)

This commit is contained in:
ashutosh chaudhary 2019-02-14 19:26:59 +05:30 committed by Shao Yu-Lung (Allen)
parent 1286b7ef06
commit 739e8d3448
1 changed files with 4 additions and 0 deletions

View File

@ -108,3 +108,7 @@ COPY install-plugins.sh /usr/local/bin/install-plugins.sh
#RUN chmod 644 /var/jenkins_home/.ssh/id_rsa.pub
## ssh-keyscan -H github.com >> ~/.ssh/known_hosts
## ssh-keyscan -H bitbucket.org >> ~/.ssh/known_hosts
# Fix docker permission denied error
USER root
RUN usermod -aG docker jenkins