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,280 points
121 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 9,330 points

Related Questions In Jenkins

0 votes
1 answer
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
• 36,690 points
73 views
0 votes
1 answer
0 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
• 56,140 points
81 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,100 points
704 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.