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
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