forgot my user and pass

139 views
Skip to first unread message

mahla damavandi

unread,
Sep 4, 2020, 8:46:48 AM9/4/20
to Jenkins Documentation
ciao guys
i did run jenkins by docker but today i try to signe in but i cant
how can i reset ny user and pass
all this tagline dosent work on my pc(window)

$JENKINS_HOME/secrets/initialAdminPassword. 
/var/lib/jenkins/secrets/initialAdminPassword. 
cat $JENKINS_HOME/secrets/initialAdminPassword.
 
and it show me :
The system cannot find the path specified.
No such file or directory

Mark Waite

unread,
Sep 4, 2020, 9:27:25 AM9/4/20
to jenkins...@googlegroups.com
The Docker installation documentation describes the steps you need to take to read the password from the console log in the "Accessing the console logs" section.;

The steps are:

C:\> docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                       NAMES
7b451848de1d        41f929bb7aef        "/sbin/tini -- /usr/…"   8 hours ago         Up 8 hours          0.0.0.0:8080->8080/tcp, optimistic_bartik
C:\> docker container logs  optimistic_bartik

The argument to the "docker container logs" command is the value displayed in the "NAMES" column of "docker ps".

You can also read the initial password using the instructions in "Accessing the Jenkins home directory".  There it says you would:

C:\> docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                       NAMES
7b451848de1d        41f929bb7aef        "/sbin/tini -- /usr/…"   8 hours ago         Up 8 hours          0.0.0.0:8080->8080/tcp, optimistic_bartik
C:\> docker exec optimistic_bartik -it bash

Once the bash command prompt is available, you can display the secrets/initialAdminPassword file with 'cat  secrets/initialAdminPassword`

The Docker container image by default does not use /var/lib/jenkins as its home directory.  It uses /var/jenkins_home.  The steps I listed above will allow you to not need to know which directory is used as the home directory.

Usually we reserve this channel to answer questions related to the creation and maintenance of the Jenkins documentation, rather than questions about using Jenkins.  All the best to you!

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Documentation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-doc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-docs/f7a373d4-52ce-44a0-b74a-4932c20fddebn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages