[JIRA] (JENKINS-30668) docker cloud doesn't pull the image before start the docker container
Title: Message Title Charl Thiem edited a comment on JENKINS-30668 Re: docker cloud doesn't pull the image before start the docker container HiHaving same problem here. When using a private hosted Image it does not get pulled. But works if I pull it manually first.{code}Feb 17, 2017 3:33:06 PM com.nirima.jenkins.plugins.docker.DockerCloud provisionINFO: Asked to provision 1 slave(s) for: docker-agentFeb 17, 2017 3:33:06 PM com.nirima.jenkins.plugins.docker.DockerCloud provisionINFO: Will provision 'private-docker.mycompany.co.za/mycompany/myimage', for label: 'docker-agent', in cloud: 'docker-agent-slave1'Feb 17, 2017 3:33:06 PM com.nirima.jenkins.plugins.docker.DockerCloud addProvisionedSlaveINFO: Provisioning 'private-docker.mycompany.co.za/mycompany/myimage' number '0' on 'docker-agent-slave1'; Total containers: '0'Feb 17, 2017 3:33:06 PM hudson.slaves.NodeProvisioner$StandardStrategyImpl applyINFO: Started provisioning Image of private-docker.mycompany.co.za/mycompany/myimage from docker-agent-slave1 with 1 executors. Remaining excess workload: 0Feb 17, 2017 3:33:06 PM com.nirima.jenkins.plugins.docker.DockerCloud pullImageINFO: Pulling image 'private-docker.mycompany.co.za/mycompany/myimage' since one was not found. This may take awhile...Feb 17, 2017 3:33:07 PM com.nirima.jenkins.plugins.docker.DockerCloud pullImageINFO: Finished pulling image 'private-docker.mycompany.co.za/mycompany/myimage', took 335 msFeb 17, 2017 3:33:07 PM com.nirima.jenkins.plugins.docker.DockerCloud provisionWithWaitINFO: Trying to run container for private-docker.mycompany.co.za/mycompany/myimageFeb 17, 2017 3:33:07 PM com.nirima.jenkins.plugins.docker.DockerCloud$1 callSEVERE: Error in provisioning; template='DockerTemplate{configVersion=2, labelString='docker-agent', launcher=com.nirima.jenkins.plugins.docker.launcher.DockerComputerSSHLauncher@55dc326b, remoteFsMapping='', remoteFs='/home/jenkins', instanceCap=1, mode=NORMAL, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@516e2362, numExecutors=1, dockerTemplateBase=DockerTemplateBase{image=private-docker.mycompany.co.za/mycompany/jenkins-docker}, removeVolumes=true, pullStrategy=PULL_LATEST}' for cloud='docker-agent-slave1'com.github.dockerjava.api.exception.NotFoundException: {"message":"No such image: private-docker.mycompany.co.za/mycompany/myimage:latest"}at com.github.dockerjava.jaxrs.filter.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:47)at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:140)at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:128)at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:257)at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:701)at org.glassfish.jersey.internal.Errors.process(Errors.java:315)at org.glassfish.jersey.internal.Errors.process(Errors.java:297)at org.glassfish.jersey.internal.Errors.process(Errors.java:228)at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:697)at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)at com.github.dockerjava.jaxrs.CreateContainerCmdExec.execute(CreateContainerCmdExec.java:34)at
[JIRA] (JENKINS-30668) docker cloud doesn't pull the image before start the docker container
Title: Message Title Charl Thiem commented on JENKINS-30668 Re: docker cloud doesn't pull the image before start the docker container Hi Having same problem here. When using a private hosted Image it does not get pulled. But works if I pull it manually first. Feb 17, 2017 3:33:06 PM com.nirima.jenkins.plugins.docker.DockerCloud provision INFO: Asked to provision 1 slave(s) for: docker-agent Feb 17, 2017 3:33:06 PM com.nirima.jenkins.plugins.docker.DockerCloud provision INFO: Will provision 'private-docker.mycompany.co.za/mycompany/myimage', for label: 'docker-agent', in cloud: 'docker-agent-slave1' Feb 17, 2017 3:33:06 PM com.nirima.jenkins.plugins.docker.DockerCloud addProvisionedSlave INFO: Provisioning 'private-docker.mycompany.co.za/mycompany/myimage' number '0' on 'docker-agent-slave1'; Total containers: '0' Feb 17, 2017 3:33:06 PM hudson.slaves.NodeProvisioner$StandardStrategyImpl apply INFO: Started provisioning Image of private-docker.mycompany.co.za/mycompany/myimage from docker-agent-slave1 with 1 executors. Remaining excess workload: 0 Feb 17, 2017 3:33:06 PM com.nirima.jenkins.plugins.docker.DockerCloud pullImage INFO: Pulling image 'private-docker.mycompany.co.za/mycompany/myimage' since one was not found. This may take awhile... Feb 17, 2017 3:33:07 PM com.nirima.jenkins.plugins.docker.DockerCloud pullImage INFO: Finished pulling image 'private-docker.mycompany.co.za/mycompany/myimage', took 335 ms Feb 17, 2017 3:33:07 PM com.nirima.jenkins.plugins.docker.DockerCloud provisionWithWait INFO: Trying to run container for private-docker.mycompany.co.za/mycompany/myimage Feb 17, 2017 3:33:07 PM com.nirima.jenkins.plugins.docker.DockerCloud$1 call SEVERE: Error in provisioning; template='DockerTemplate{configVersion=2, labelString='docker-agent', launcher=com.nirima.jenkins.plugins.docker.launcher.DockerComputerSSHLauncher@55dc326b, remoteFsMapping='', remoteFs='/home/jenkins', ins tanceCap=1, mode=NORMAL, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@516e2362, numExecutors=1, dockerTemplateBase=DockerTemplateBase{image=private-docker.mycompany.co.za/mycompany/jenkins-doc ker}, removeVolumes=true, pullStrategy=PULL_LATEST}' for cloud='docker-agent-slave1' com.github.dockerjava.api.exception.NotFoundException: {"message":"No such image: private-docker.mycompany.co.za/mycompany/myimage:latest"} at com.github.dockerjava.jaxrs.filter.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:47) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:140) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:128) at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:257) at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:701) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:697) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
[JIRA] (JENKINS-30668) docker cloud doesn't pull the image before start the docker container
Title: Message Title Ron Hough commented on JENKINS-30668 Re: docker cloud doesn't pull the image before start the docker container I have this problem running Jenkins 2.20 and docker-plugin 0.16.1. A docker slave template image doesn't get pulled automatically from a remote registry. If the image doesn't exist in the local registry, the job hangs waiting for an executor. If the image is pulled manually, the job starts. I've entered registry credentials under "Docker Plugin" on the Configuration screen, but it looks like an auth error is still being thrown: {{INFO: Started provisioning Image of REDACTED/jenkins_d_slave from docker with 1 executors. Remaining excess workload: 0 Sep 01, 2016 5:23:58 PM com.nirima.jenkins.plugins.docker.DockerCloud pullImage INFO: Pulling image 'REDACTED/jenkins_d_slave' since one was not found. This may take awhile... Sep 01, 2016 5:23:58 PM com.github.dockerjava.core.async.ResultCallbackTemplate onError SEVERE: Error during callback com.github.dockerjava.api.InternalServerErrorException: Get http://REDACTED/jenkins_d_slave/tags/list: no basic auth credentials at com.github.dockerjava.jaxrs.filter.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:53) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:134) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:123) at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:251) at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:683) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:679) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:435) at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:338) at com.github.dockerjava.jaxrs.async.POSTCallbackNotifier.response(POSTCallbackNotifier.java:29) at com.github.dockerjava.jaxrs.async.AbstractCallbackNotifier.call(AbstractCallbackNotifier.java:45) at com.github.dockerjava.jaxrs.async.AbstractCallbackNotifier.call(AbstractCallbackNotifier.java:22) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Sep 01, 2016 5:23:58 PM com.nirima.jenkins.plugins.docker.DockerCloud$1 call SEVERE: Error in provisioning; template='DockerTemplate{configVersion=2, labelString='maven-d', launcher=com.nirima.jenkins.plugins.docker.launcher.DockerComputerSSHLauncher@70153a03, remoteFsMapping='/home/jenkins', remoteFs='/home/jenkins', instanceCap=3, mode=NORMAL, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@4668bd65, numExecutors=1, dockerTemplateBase=DockerTemplateBase {image=REDACTED/jenkins_d_slave} , removeVolumes=false, pullStrategy=PULL_LATEST}' for cloud='docker' com.github.dockerjava.api.DockerClientException: Could not pull image at com.github.dockerjava.core.command.PullImageResultCallback.awaitSuccess(PullImageResultCallback.java:47) at com.nirima.jenkins.plugins.docker.DockerCloud.pullImage(DockerCloud.java:361) at
[JIRA] (JENKINS-30668) docker cloud doesn't pull the image before start the docker container
Title: Message Title huaqiang li commented on JENKINS-30668 Re: docker cloud doesn't pull the image before start the docker container i updated the jenkins docker plugin to the latest 0.16.0 version , now it works to pull the image once before starting the container Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-30668) docker cloud doesn't pull the image before start the docker container
Title: Message Title Kanstantsin Shautsou commented on JENKINS-30668 Re: docker cloud doesn't pull the image before start the docker container Not sure about docker-plugin but i fixed it long time ago in https://github.com/KostyaSha/yet-another-docker-plugin Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-30668) docker cloud doesn't pull the image before start the docker container
Title: Message Title Marco Pas commented on JENKINS-30668 Re: docker cloud doesn't pull the image before start the docker container We are having the same issue. It just waits for an image. The only solutions now is to pull the image on the host. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.