public class Docker extends Object implements Closeable
| Constructor and Description |
|---|
Docker(org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint dockerHost,
String dockerInstallation,
String credentialsId,
hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
boolean verbose,
boolean privileged) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildImage(hudson.FilePath workspace,
String dockerfile,
String tag) |
void |
close() |
void |
executeIn(String container,
String userId,
hudson.Launcher.ProcStarter starter) |
boolean |
hasImage(String image) |
void |
kill(String container) |
boolean |
pullImage(String image) |
String |
runDetached(String image,
String workdir,
Map<String,String> volumes,
Map<Integer,Integer> ports,
Map<String,String> links,
hudson.EnvVars environment,
String... command) |
void |
setupCredentials(hudson.model.AbstractBuild build) |
public Docker(org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint dockerHost,
String dockerInstallation,
String credentialsId,
hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
boolean verbose,
boolean privileged)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void setupCredentials(hudson.model.AbstractBuild build)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean hasImage(String image) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic boolean pullImage(String image) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void buildImage(hudson.FilePath workspace,
String dockerfile,
String tag)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void kill(String container) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String runDetached(String image, String workdir, Map<String,String> volumes, Map<Integer,Integer> ports, Map<String,String> links, hudson.EnvVars environment, String... command) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void executeIn(String container, String userId, hudson.Launcher.ProcStarter starter) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.