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
> 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:StartedSelectC...@0.0.0.0: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
jenkinsci-use...@googlegroups.com
> <mailto:
jenkinsci-use...@googlegroups.com>.
> 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.