1

CloudBees Jenkins Distribution with Docker

 

CloudBees Docker install page - https://docs.cloudbees.com/docs/cloudbees-jenkins-distribution/latest/distro-install-guide/docker/  - recommends starting a docker image as a root user.

docker run \
-u root \
--rm \
-d \
-p 8080:8080 \
-p 50000:50000 \
-v jenkins-data:/var/cloudbees-jenkins-distribution \
-v /var/run/docker.sock:/var/run/docker.sock \
cloudbees/cloudbees-jenkins-distribution

It is well known that starting docker jenkins image as a root user is not the best practice. At the same time official jenkins documentation site recommends using a different approach for starting a Jenkins docker image - see https://www.jenkins.io/doc/book/installing/docker/

Please clarify why above approach is not used during installation of CloudBees Jenkins Distribution with Docker

0 comments

Please sign in to leave a comment.