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