public class CommitCmdImpl extends AbstrDockerCmd<CommitCmd,String> implements CommitCmd
CommitCmd.Exec
execution
Constructor and Description |
---|
CommitCmdImpl(CommitCmd.Exec exec,
String containerId) |
close, registryAuth, toString
public CommitCmdImpl(CommitCmd.Exec exec, String containerId)
public String getContainerId()
getContainerId
in interface CommitCmd
public CommitCmdImpl withContainerId(String containerId)
withContainerId
in interface CommitCmd
public String getRepository()
getRepository
in interface CommitCmd
public String getMessage()
getMessage
in interface CommitCmd
public Boolean hasPauseEnabled()
hasPauseEnabled
in interface CommitCmd
public CommitCmdImpl withAttachStderr(Boolean attachStderr)
withAttachStderr
in interface CommitCmd
public CommitCmdImpl withAttachStdin(Boolean attachStdin)
withAttachStdin
in interface CommitCmd
public CommitCmdImpl withAttachStdout(Boolean attachStdout)
withAttachStdout
in interface CommitCmd
public CommitCmdImpl withCmd(String... cmd)
public CommitCmdImpl withDisableNetwork(Boolean disableNetwork)
withDisableNetwork
in interface CommitCmd
public CommitCmdImpl withAuthor(String author)
withAuthor
in interface CommitCmd
public CommitCmdImpl withMessage(String message)
withMessage
in interface CommitCmd
public CommitCmdImpl withTag(String tag)
public CommitCmdImpl withRepository(String repository)
withRepository
in interface CommitCmd
public CommitCmdImpl withPause(Boolean pause)
public CommitCmdImpl withEnv(String... env)
public ExposedPorts getExposedPorts()
getExposedPorts
in interface CommitCmd
public CommitCmdImpl withExposedPorts(ExposedPorts exposedPorts)
withExposedPorts
in interface CommitCmd
public String getHostname()
getHostname
in interface CommitCmd
public CommitCmdImpl withHostname(String hostname)
withHostname
in interface CommitCmd
public CommitCmdImpl withMemory(Integer memory)
withMemory
in interface CommitCmd
public Integer getMemorySwap()
getMemorySwap
in interface CommitCmd
public CommitCmdImpl withMemorySwap(Integer memorySwap)
withMemorySwap
in interface CommitCmd
public Boolean isOpenStdin()
isOpenStdin
in interface CommitCmd
public CommitCmdImpl withOpenStdin(Boolean openStdin)
withOpenStdin
in interface CommitCmd
public String[] getPortSpecs()
getPortSpecs
in interface CommitCmd
public CommitCmdImpl withPortSpecs(String... portSpecs)
withPortSpecs
in interface CommitCmd
public Boolean isStdinOnce()
isStdinOnce
in interface CommitCmd
public CommitCmdImpl withStdinOnce(Boolean stdinOnce)
withStdinOnce
in interface CommitCmd
public CommitCmdImpl withTty(Boolean tty)
public CommitCmdImpl withUser(String user)
public Volumes getVolumes()
getVolumes
in interface CommitCmd
public CommitCmdImpl withVolumes(Volumes volumes)
withVolumes
in interface CommitCmd
public String getWorkingDir()
getWorkingDir
in interface CommitCmd
public CommitCmdImpl withWorkingDir(String workingDir)
withWorkingDir
in interface CommitCmd
public String exec() throws NotFoundException
exec
in interface CommitCmd
exec
in interface SyncDockerCmd<String>
exec
in class AbstrDockerCmd<CommitCmd,String>
NotFoundException
- No such containerCopyright © 2016. All Rights Reserved.