How do I get initial admin password for jenkins on Mac?

前端 未结 13 1761
借酒劲吻你
借酒劲吻你 2020-12-24 11:12

I installed jenkins by downloading jenkins-2.2.pkg. After the installation is complete, Chrome auto-connected to http://localhost:8080/login?from=%2F and I see

13条回答
  •  生来不讨喜
    2020-12-24 11:55

    If you are using jenkins image from dockerhub repo and create a container then you can get the initial password using:

    $ sudo docker exec jenkins_containerid cat /var/lib/jenkins/secrets/initialAdminPassword
    

    OR if installing from jenkins.io docs (https://jenkins.io/doc/book/installing/):

    $ sudo docker exec jenkins_containerid cat /var/jenkins_home/secrets/initialAdminPassword
    

    OR you can see the docker logs of container

    $ sudo docker logs jenkinscontainerID
    

提交回复
热议问题