I m facing a login error when I try to run Jenkins on Docker How do I solve this

0 votes

I’m trying to run Jenkins on docker.

After I pull the Jenkins image with this command

docker pull jenkins

I tried to start Jenkins image by following the below command:

docker run -p 8080:8080 -p 50000:50000 -v /your/home:/var/jenkins_home jenkins

But when I login to http://localhost:8080/ I get a login error which happens because I don’t have the generated admin password. How do I solve this?

Jul 24, 2018 in Jenkins by Tyrion anex
• 8,700 points
3,595 views

1 answer to this question.

0 votes

You have to open the /var/log/jenkins/jenkins.log file to check the admin password.

The password is stored in /var/jenkins_home/secrets/initialAdminPassword.
You can use the below command to access it.

docker exec <container> cat /var/jenkins_home/secrets/initialAdminPassword

where <container> is your container id

answered Jul 24, 2018 by Sophie may
• 10,620 points

Related Questions In Jenkins

0 votes
1 answer
+2 votes
4 answers
0 votes
1 answer

Error saying "localhost:3001error" When trying to run a build - Jenkins

There are two possible issues with this ...READ MORE

answered Dec 19, 2018 in Jenkins by Kalgi
• 52,350 points
1,503 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,739 views
0 votes
2 answers

How to solve this error “Jenkins - j_acegi_security_check” ?

This is how I resolved this issue: # ...READ MORE

answered Aug 13, 2018 in Jenkins by lina
• 8,220 points
7,501 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP