Class CreateContainerCommand
java.lang.Object
org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
org.jenkinsci.plugins.dockerbuildstep.cmd.CreateContainerCommand
- All Implemented Interfaces:
- ExtensionPoint,- Describable<DockerCommand>
This command creates new container from specified image.
- Author:
- vjuranek
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommandDockerCommand.DockerCommandDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommandCREDENTIALS_MATCHER
- 
Constructor SummaryConstructorsConstructorDescriptionCreateContainerCommand(String image, String command, String hostName, String containerName, String envVars, String links, String exposedPorts, String cpuShares, String memoryLimit, String dns, String extraHosts, String networkMode, boolean publishAllPorts, String portBindings, String bindMounts, boolean privileged, boolean alwaysRestart) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute(Launcher launcher, AbstractBuild build, ConsoleLogger console) getDns()getImage()getLinks()booleanbooleanbooleanbooleanbooleanMethods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommandall, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
- 
Constructor Details- 
CreateContainerCommand@DataBoundConstructor public CreateContainerCommand(String image, String command, String hostName, String containerName, String envVars, String links, String exposedPorts, String cpuShares, String memoryLimit, String dns, String extraHosts, String networkMode, boolean publishAllPorts, String portBindings, String bindMounts, boolean privileged, boolean alwaysRestart) throws IllegalArgumentException - Throws:
- IllegalArgumentException
 
 
- 
- 
Method Details- 
getImage
- 
getCommand
- 
getHostName
- 
getContainerName
- 
getEnvVars
- 
getLinks
- 
getExposedPorts
- 
getMemoryLimit
- 
getDns
- 
getExtraHosts
- 
getNetworkMode
- 
isPublishAllPortspublic boolean isPublishAllPorts()
- 
isPrivilegedpublic boolean isPrivileged()
- 
getPublishAllPortspublic boolean getPublishAllPorts()
- 
getPortBindings
- 
getBindMounts
- 
getPrivilegedpublic boolean getPrivileged()
- 
isAlwaysRestartpublic boolean isAlwaysRestart()
- 
executepublic void execute(Launcher launcher, AbstractBuild build, ConsoleLogger console) throws com.github.dockerjava.api.exception.DockerException - Specified by:
- executein class- DockerCommand
- Throws:
- com.github.dockerjava.api.exception.DockerException
 
 
-