Class CreateContainerCommand

java.lang.Object
org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
org.jenkinsci.plugins.dockerbuildstep.cmd.CreateContainerCommand
All Implemented Interfaces:
ExtensionPoint, Describable<DockerCommand>

public class CreateContainerCommand extends DockerCommand
This command creates new container from specified image.
Author:
vjuranek
See Also:
  • Constructor Details

  • Method Details

    • getImage

      public String getImage()
    • getCommand

      public String getCommand()
    • getHostName

      public String getHostName()
    • getContainerName

      public String getContainerName()
    • getEnvVars

      public String getEnvVars()
    • getLinks

      public String getLinks()
    • getExposedPorts

      public String getExposedPorts()
    • getCpuShares

      public String getCpuShares()
    • getMemoryLimit

      public String getMemoryLimit()
    • getDns

      public String getDns()
    • getExtraHosts

      public String getExtraHosts()
    • getNetworkMode

      public String getNetworkMode()
    • isPublishAllPorts

      public boolean isPublishAllPorts()
    • isPrivileged

      public boolean isPrivileged()
    • getPublishAllPorts

      public boolean getPublishAllPorts()
    • getPortBindings

      public String getPortBindings()
    • getBindMounts

      public String getBindMounts()
    • getPrivileged

      public boolean getPrivileged()
    • isAlwaysRestart

      public boolean isAlwaysRestart()
    • execute

      public void execute(Launcher launcher, AbstractBuild build, ConsoleLogger console) throws com.github.dockerjava.api.exception.DockerException
      Specified by:
      execute in class DockerCommand
      Throws:
      com.github.dockerjava.api.exception.DockerException