Skip to content

Commit

Permalink
Fixed docker command permission denied error while building (laradock…
Browse files Browse the repository at this point in the history
  • Loading branch information
codeasashu authored and bestlong committed Feb 14, 2019
1 parent 1286b7e commit 739e8d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jenkins/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 739e8d3

Please sign in to comment.