[JIRA] (JENKINS-32709) Docker Pipeline plugin: docker.withServer still executes on local Jenkins server

2018-04-12 Thread julioh...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Julio Guimaraes edited a comment on  JENKINS-32709  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Docker Pipeline plugin: docker.withServer still executes on local Jenkins server   
 

  
 
 
 
 

 
 One year after my first post, I don't know if someone will be needing this yet, but maybe I can help someone:According to [the official installation documentation|https://jenkins.io/doc/book/installing/] today, it recommends using [jenkinsci/blueocean image|https://hub.docker.com/r/jenkinsci/blueocean/] (not [https://hub.docker.com/_/jenkins|https://hub.docker.com/_/jenkins/] as it was in the past).So, I looked for the Dockerfile (blueocean-plugin/docker/official/Dockerfile) for this image in the [jenkinsci/blueocean-plugin GitHub repository|https://github.com/jenkinsci/blueocean-plugin]. And it contains these lines:{code:java}# Add the docker binary so running Docker commands from the master works nicelyRUN apk -U add docker{code}In my tests using this new image I don't even map the "-v /var/run/docker.sock:/var/run/docker.sock". The results are: * It seems that the docker deamon is not started, so there aren't containers running inside the Jenkins container; *  Now  I can create pipelines in Jenkins  capable of connecting to remote docker servers (or even in the local machine) using docker.withServer('tcp://my.docker.host:2345'). :)Apparently, this new image contains at least the docker client (which was not present in the old image) and it is necessary for using remote docker servers.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this 

[JIRA] (JENKINS-32709) Docker Pipeline plugin: docker.withServer still executes on local Jenkins server

2018-04-12 Thread julioh...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Julio Guimaraes commented on  JENKINS-32709  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Docker Pipeline plugin: docker.withServer still executes on local Jenkins server   
 

  
 
 
 
 

 
 One year after my first post, I don't know if someone will be needing this yet, but maybe I can help someone: According to the official installation documentation today, it recommends using jenkinsci/blueocean image (not https://hub.docker.com/_/jenkins as it was in the past). So, I looked for the Dockerfile (blueocean-plugin/docker/official/Dockerfile) for this image in the jenkinsci/blueocean-plugin GitHub repository. And it contains these lines: 

 

# Add the docker binary so running Docker commands from the master works nicely
RUN apk -U add docker
 

 In my tests using this new image I don't even map the "-v /var/run/docker.sock:/var/run/docker.sock". The results are: 
 
It seems that the docker deamon is not started, so there aren't containers running inside the Jenkins container; 
I can create pipelines in Jenkins  capable of connecting to remote docker servers (or even in the local machine) using docker.withServer('tcp://my.docker.host:2345').  
 Apparently, this new image contains at least the docker client (which was not present in the old image) and it is necessary for using remote docker servers.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)