I would guess the problem is due to using boot2docker, i.e. the port
won't be exposed on localhost, but on a separate network interface.
See the documentation:
https://docs.docker.com/installation/windows/#container-port-redirection
Regards,
Chris
On 04/05/15 11:43, Marco K. wrote:
I'm trying to use the official Jenkins docker image
<https://registry.hub.docker.com/_/jenkins/>but it seems to stuck
after/while setting agent port during start-up (see below output).
http://localhost:8080 is not reachable..
|
|mark@MARK-PC ~
|$ docker run -p 8080:8080jenkins
Unableto find image 'jenkins:latest'locally
latest:Pullingfromjenkins
511136ea3c5a:Pullcomplete
================================================>]32B/32BB
848d84b4b2ab:Pullcomplete
================================================>]50.97MB/50.97MBB
71d9d77ae89e:Pullcomplete
================================================>]32B/32BB
34664741b33f:Pullcomplete
================================================>]32B/32BB
bd8bd16075a0:Pullcomplete
================================================>]197.7MB/197.7MBB
c15d04694341:Pullcomplete
================================================>]15.33MB/15.33MBB
5e97c669e8ad:Pullcomplete
================================================>]32B/32BB
b872be1ed4e2:Pullcomplete
================================================>]4.396kB/4.396kBB
dc840aab2066:Pullcomplete
================================================>]32B/32BB
adc3c45c3240:Pullcomplete
================================================>]180B/180BB
2d759671b8eb:Pullcomplete
================================================>]347B/347BB
f89db0b7f3f4:Pullcomplete
================================================>]32B/32BB
0f90d7a31266:Pullcomplete
================================================>]62.53MB/62.53MBB
436ac75860fa:Pullcomplete
================================================>]32B/32BB
918ffc77f2ce:Pullcomplete
================================================>]351B/351BB
a3f93642995b:Pullcomplete
================================================>]32B/32BB
1b8eb55d3cb2:Pullcomplete
================================================>]32B/32BB
5d31e1363108:Pullcomplete
================================================>]32B/32BB
0b2e95c97d30:Pullcomplete
================================================>]749B/749BB
8b8c22b711b0:Pullcomplete
================================================>]32B/32BB
1520f72eb8b6:Alreadyexists
===============================================>]522B/522BB
jenkins:latest:Theimage you are pulling has been
verified.Important:image verification isa tech preview feature andshould
notbe relied on to provide security.
Digest:sha256:a8383bdcd35d15b4a88e25e193ffb05f5304df3e8d9f4d81a90f03eb454e7f49
Status:Downloadednewer image forjenkins:latest
/usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groovy
/usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groovy
->init.groovy.d/tcp-slave-agent-port.groovy
copy init.groovy.d/tcp-slave-agent-port.groovy to JENKINS_HOME
Runningfrom:/usr/share/jenkins/jenkins.war
webroot:EnvVars.masterEnvVars.get("JENKINS_HOME")
May04,20159:37:11AM winstone.LoggerlogInternal
INFO:Beginningextraction fromwar file
May04,20159:37:12AM org.eclipse.jetty.util.log.JavaUtilLoginfo
INFO:jetty-winstone-2.8
May04,20159:37:13AM org.eclipse.jetty.util.log.JavaUtilLoginfo
INFO:NO JSP Supportfor,did notfind org.apache.jasper.servlet.JspServlet
Jenkinshome directory:/var/jenkins_home found
at:EnvVars.masterEnvVars.get("JENKINS_HOME")
May04,20159:37:14AM org.eclipse.jetty.util.log.JavaUtilLoginfo
INFO:[email protected]:8080
May04,20159:37:14AM winstone.LoggerlogInternal
INFO:WinstoneServletEnginev2.0running:controlPort=disabled
May04,20159:37:14AM jenkins.InitReactorRunner$1onAttained
INFO:Startedinitialization
May04,20159:37:21AM jenkins.InitReactorRunner$1onAttained
INFO:Listedall plugins
May04,20159:37:21AM jenkins.InitReactorRunner$1onAttained
INFO:Preparedall plugins
May04,20159:37:21AM jenkins.InitReactorRunner$1onAttained
INFO:Startedall plugins
May04,20159:37:21AM jenkins.InitReactorRunner$1onAttained
INFO:Augmentedall extensions
May04,20159:37:21AM jenkins.InitReactorRunner$1onAttained
INFO:Loadedall jobs
May04,20159:37:21AM jenkins.util.groovy.GroovyHookScriptexecute
INFO:Executing/var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
May04,20159:37:23AM org.jenkinsci.main.modules.sshd.SSHD start
INFO:StartedSSHD at port 54711
May04,20159:37:23AM hudson.model.AsyncPeriodicWork$1run
INFO:StartedDownloadmetadata
May04,20159:37:23AM jenkins.InitReactorRunner$1onAttained
INFO:Completedinitialization
May04,20159:37:23AM hudson.WebAppMain$3run
INFO:Jenkinsisfully up andrunning
May04,20159:37:27AM hudson.model.UpdateSiteupdateData
INFO:Obtainedthe latest update center data file forUpdateSourcedefault
May04,20159:37:27AM hudson.model.DownloadService$Downloadableload
INFO:Obtainedthe updated data file forhudson.tasks.Maven.MavenInstaller
May04,20159:37:28AM hudson.model.DownloadService$Downloadableload
INFO:Obtainedthe updated data file forhudson.tasks.Ant.AntInstaller
May04,20159:37:30AM hudson.model.DownloadService$Downloadableload
INFO:Obtainedthe updated data file forhudson.tools.JDKInstaller
May04,20159:37:30AM hudson.model.AsyncPeriodicWork$1run
INFO:FinishedDownloadmetadata.6,955ms
-->setting agent port forjnlp
|
System: Windows 8.1 x64, Boot2Docker 1.6.0
--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/d0c6c304-cce2-41ba-b2d2-ae88b13153e1%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/d0c6c304-cce2-41ba-b2d2-ae88b13153e1%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/55474B4B.9060908%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.