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

前端 未结 13 1842
借酒劲吻你
借酒劲吻你 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:53

    If you have installed Jenkins using Docker and you are not able to find the password using the command :

    $ sudo cat /Users/Shared/Jenkins/Home/secrets/initialAdminPassword

    Then do following steps :

    1. Type in your command prompt : docker ps

    2. Find the running containerID

    3. Type docker exec -it bash

    4. Type cd /var/jenkins_home/secrets

    5. Type cat initialAdminPassword

提交回复
热议问题