com.cloudbees.jenkins.plugins.okidocki
Class Docker
java.lang.Object
com.cloudbees.jenkins.plugins.okidocki.Docker
public class Docker
- extends Object
- Author:
- Nicolas De Loof
Constructor Summary |
Docker(hudson.Launcher launcher,
hudson.model.TaskListener listener)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Docker
public Docker(hudson.Launcher launcher,
hudson.model.TaskListener listener)
hasImage
public boolean hasImage(String image)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
pullImage
public boolean pullImage(String image)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
buildImage
public void buildImage(hudson.FilePath workspace,
String tag)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
kill
public void kill(String container)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
runDetached
public String runDetached(String image,
String workdir,
Map<String,String> volumes,
hudson.EnvVars environment,
String user,
String... command)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
Copyright © 2004-2014. All Rights Reserved.