How can I find initial password for jenkins? : <p>I already searched the related questions like here;</p>

<p><a href="https://stackoverflow.com/questions/37146063/how-do-i-get-initial-admin-password-for-jenkins-on-mac">How do I get initial admin password for jenkins on Mac?</a></p>

<p>and here;</p>

<p><a href="https://stackoverflow.com/questions/17467139/how-to-recover-jenkins-password">How to recover Jenkins password</a></p>

<p>However, I cannot find a solution for my problem.</p>

<p>I am following the instructions to install jenkins on this link;</p>

<p><a href="https://jenkins.io/doc/book/installing/" rel="noreferrer">https://jenkins.io/doc/book/installing/</a></p>

<p>and I have run the following commands to install and tried to make it run on my local machine (mac os);</p>

<pre><code>docker run \
  -u root \
  --rm \
  -d \
  -p 8080:8080 \
  -p 50000:50000 \
  -v jenkins-data:/var/jenkins_home \
  -v /var/run/docker.sock:/var/run/docker.sock \
  jenkinsci/blueocean
</code></pre>

<p>It installs it properly but when I get to the login screen it asks for the initial admin password. Because the installation runs in (-d mode) backend, I cannot see the initial password after the installation completes. When I remove -d for the installation, then the installation does not work. </p>

<p>I also checked the shared folder (User/Shared/Jenkins/Home) directory and there was no <code>secrets</code> folder in it. So I created one manually and followed the instructions (in the answers) on this link again;</p>

<p><a href="https://stackoverflow.com/questions/37146063/how-do-i-get-initial-admin-password-for-jenkins-on-mac">How do I get initial admin password for jenkins on Mac?</a></p>

<p>Afterwards, I removed the related docker process and restarted all the installation process from the beginning but I got the same result.</p>

<p>In this case, how can I find this initial admin password or how can I generate it again?</p>

<p>BTW: I am also checking the logs (where in <code>/var/log/jenkins</code>) but it seems that it stopped writing there after my first install attempt and I also couldn't find the initial password there).</p>
