在docker上运行的jenkins无法通过localhost访问

时间:2019-10-27 19:27:23

标签: docker jenkins

我正在使用标准的docker命令在我的docker实例上提取并运行jenkins映像,如下所示。请说明一下这里可能出了什么问题以及有关如何解决它的建议。

******-M-T2EK:Jenkins $ docker run -p 8090:8080 -p 50000:50000 jenkins
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Oct 27, 2019 7:06:56 PM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Oct 27, 2019 7:06:56 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @1087ms
Oct 27, 2019 7:06:56 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Oct 27, 2019 7:06:58 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Oct 27, 2019 7:06:58 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Oct 27, 2019 7:06:59 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Oct 27, 2019 7:07:00 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.@47404bea{/,file:/var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
Oct 27, 2019 7:07:00 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@15c25153{HTTP/1.1}{0.0.0.0:8080}
Oct 27, 2019 7:07:00 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @4442ms
Oct 27, 2019 7:07:00 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
....


Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

c113b006b4d149039e5deee9562880ba

This may also be found at: /var/jenkins_home/secrets/initialAdminPassword

*************************************************************
*************************************************************
*************************************************************

Oct 27, 2019 7:08:33 PM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Oct 27, 2019 7:08:33 PM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
Oct 27, 2019 7:08:35 PM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tools.JDKInstaller
Oct 27, 2019 7:08:35 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 79,278 ms
Oct 27, 2019 7:08:38 PM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Oct 27, 2019 7:08:38 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
--> setting agent port for jnlp
--> setting agent port for jnlp... done

由于某种原因,它处于加载阶段。

******-M-T2EK:Jenkins $ wget http://localhost:8090/
--2019-10-27 12:09:08--  http://localhost:8090/
wget: /Users/************/.netrc:1: unknown token "Welcome9$"
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8090... connected.
HTTP request sent, awaiting response... 

0 个答案:

没有答案