public class ExecCreateCmdImpl extends AbstrDockerCmd<ExecCreateCmd,ExecCreateCmdResponse> implements ExecCreateCmd
ExecCreateCmd.Exec
execution
Constructor and Description |
---|
ExecCreateCmdImpl(ExecCreateCmd.Exec exec,
java.lang.String containerId) |
Modifier and Type | Method and Description |
---|---|
ExecCreateCmdResponse |
exec() |
java.lang.String |
getContainerId() |
java.lang.String |
getUser() |
java.lang.Boolean |
hasAttachStderrEnabled() |
java.lang.Boolean |
hasAttachStdinEnabled() |
java.lang.Boolean |
hasAttachStdoutEnabled() |
java.lang.Boolean |
hasTtyEnabled() |
ExecCreateCmd |
withAttachStderr(java.lang.Boolean attachStderr) |
ExecCreateCmd |
withAttachStdin(java.lang.Boolean attachStdin) |
ExecCreateCmd |
withAttachStdout(java.lang.Boolean attachStdout) |
ExecCreateCmd |
withCmd(java.lang.String... cmd) |
ExecCreateCmd |
withContainerId(java.lang.String containerId) |
ExecCreateCmd |
withTty(java.lang.Boolean tty) |
ExecCreateCmd |
withUser(java.lang.String user) |
close, registryAuth, toString
public ExecCreateCmdImpl(ExecCreateCmd.Exec exec, java.lang.String containerId)
public ExecCreateCmd withContainerId(java.lang.String containerId)
withContainerId
in interface ExecCreateCmd
public ExecCreateCmd withAttachStdin(java.lang.Boolean attachStdin)
withAttachStdin
in interface ExecCreateCmd
public ExecCreateCmd withAttachStdout(java.lang.Boolean attachStdout)
withAttachStdout
in interface ExecCreateCmd
public ExecCreateCmd withAttachStderr(java.lang.Boolean attachStderr)
withAttachStderr
in interface ExecCreateCmd
public ExecCreateCmd withTty(java.lang.Boolean tty)
withTty
in interface ExecCreateCmd
public ExecCreateCmd withUser(java.lang.String user)
withUser
in interface ExecCreateCmd
public ExecCreateCmd withCmd(java.lang.String... cmd)
withCmd
in interface ExecCreateCmd
public java.lang.String getContainerId()
getContainerId
in interface ExecCreateCmd
public java.lang.Boolean hasAttachStdinEnabled()
hasAttachStdinEnabled
in interface ExecCreateCmd
public java.lang.Boolean hasAttachStdoutEnabled()
hasAttachStdoutEnabled
in interface ExecCreateCmd
public java.lang.Boolean hasAttachStderrEnabled()
hasAttachStderrEnabled
in interface ExecCreateCmd
public java.lang.Boolean hasTtyEnabled()
hasTtyEnabled
in interface ExecCreateCmd
public java.lang.String getUser()
getUser
in interface ExecCreateCmd
public ExecCreateCmdResponse exec() throws NotFoundException
exec
in interface SyncDockerCmd<ExecCreateCmdResponse>
exec
in class AbstrDockerCmd<ExecCreateCmd,ExecCreateCmdResponse>
NotFoundException
- No such containerCopyright © 2018. All Rights Reserved.