Hello,

I've been playing around at work with the Jenkins Docker plugin and right 
before making it available, I hit a strange behavior that holds me from 
using it widely for now.

I have a pretty simple setup with few images I made myself but I only 
install the tools I need, set up a jenkins user and add our public key then 
finally start a SSH server. The plugin is configured to contact a Docker 
daemon which is hosted on a CoreOS instance.
It very straightforward and works fine. I can even start a container from 
one of these images manually and create a new node out of it if a 
persistent slave is needed.

But from time to time (quite often in fact), the plugin takes a little bit 
of time to start up a container or may be to ssh into it, I can't really 
say. The build stays on a "waiting" state "because all the slaves are 
offline". When that happens, a container spawns but still the build isn't 
attached to it, as if it was offline. And then another container is 
spawned... and another one... and another one... It's generally not more 
than 5 or 6 for one build but the containers are left there and never 
killed or removed. I can stop them manually of course from the interface or 
the host but I don't think that's an expected behavior. It's not a glitch 
since the containers are very well alive on the host. It happens as well 
when the image is already present on the docker host so the "offline" time 
does not seem related to the downloading time of the image.

It might have something to do with the tags associated with the images. It 
didn't happen since I associated a single unique tag for each image. May be 
if multiple images are possible for one build (with common tags), then may 
be that is the trigger of this behavior.

I've seen this behavior mentioned once in a previous thread from a while 
ago but no further discussion about it. I'm not sure where to start looking 
for answers, let me know if that belongs to the Jenkins Developers group.

Has anybody experienced that as well and may be has some 
answers/explanations?

Thanks in advance for your answers.
Alexis.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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-dev/b0de2b52-cf02-4c39-bb9b-03c60a48debd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to