Jenkins docker image stucks on start-up

2015-05-04 Thread Marco K.
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:8080 jenkins
Unable to find image 'jenkins:latest' locally
latest: Pulling from jenkins

511136ea3c5a: Pull complete 
] 32 B/32 BB
848d84b4b2ab: Pull complete 
] 50.97 MB/50.97 MBB
71d9d77ae89e: Pull complete 
] 32 B/32 BB
34664741b33f: Pull complete 
] 32 B/32 BB
bd8bd16075a0: Pull complete 
] 197.7 MB/197.7 MBB
c15d04694341: Pull complete 
] 15.33 MB/15.33 MBB
5e97c669e8ad: Pull complete 
] 32 B/32 BB
b872be1ed4e2: Pull complete 
] 4.396 kB/4.396 kBB
dc840aab2066: Pull complete 
] 32 B/32 BB
adc3c45c3240: Pull complete 
]180 B/180 BB
2d759671b8eb: Pull complete 
]347 B/347 BB
f89db0b7f3f4: Pull complete 
] 32 B/32 BB
0f90d7a31266: Pull complete 
] 62.53 MB/62.53 MBB
436ac75860fa: Pull complete 
] 32 B/32 BB
918ffc77f2ce: Pull complete 
]351 B/351 BB
a3f93642995b: Pull complete 
] 32 B/32 BB
1b8eb55d3cb2: Pull complete 
] 32 B/32 BB
5d31e1363108: Pull complete 
] 32 B/32 BB
0b2e95c97d30: Pull complete 
]749 B/749 BB
8b8c22b711b0: Pull complete 
] 32 B/32 BB
1520f72eb8b6: Already exists 
===]522 B/522 BB
jenkins:latest: The image you are pulling has been verified. Important: 
image verification is a tech preview feature and should not be relied on to 
provide security.

Digest: sha256:
a8383bdcd35d15b4a88e25e193ffb05f5304df3e8d9f4d81a90f03eb454e7f49
Status: Downloaded newer image for jenkins: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
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get(JENKINS_HOME)
May 04, 2015 9:37:11 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
May 04, 2015 9:37:12 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-winstone-2.8
May 04, 2015 9:37:13 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.
get(JENKINS_HOME)
May 04, 2015 9:37:14 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector@0.0.0.0:8080
May 04, 2015 9:37:14 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
May 04, 2015 9:37:14 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
May 04, 2015 9:37:21 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
May 04, 2015 9:37:21 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
May 04, 2015 9:37:21 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
May 04, 2015 9:37:21 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
May 04, 2015 9:37:21 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
May 04, 2015 9:37:21 AM jenkins.util.groovy.GroovyHookScript execute
INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
May 04, 2015 9:37:23 AM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 54711
May 04, 2015 9:37:23 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
May 04, 2015 9:37:23 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
May 04, 2015 9:37:23 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
May 04, 2015 9:37:27 AM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
May 04, 2015 9:37:27 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
May 04, 2015 

Re: Jenkins docker image stucks on start-up

2015-05-04 Thread Christopher Orr
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:StartedSelectChannelConnector@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

Re: Jenkins docker image stucks on start-up

2015-05-04 Thread Marco K.
Thank you very much, Chris. I'm able to reach Jenkins at 
http://192.168.59.103:8080 which is the default IP for boot2docker users 
according to the link.

Kind regards,
Marco

Am Montag, 4. Mai 2015 12:35:02 UTC+2 schrieb Christopher Orr:

 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 


-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/649c4858-a261-4a86-871c-7a22a225ffc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.