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.util.List<java.lang.String> |
getEnv() |
java.lang.Boolean |
getPrivileged() |
java.lang.String |
getUser() |
java.lang.String |
getWorkingDir() |
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 |
withEnv(java.util.List<java.lang.String> env) |
ExecCreateCmd |
withPrivileged(java.lang.Boolean privileged) |
ExecCreateCmd |
withTty(java.lang.Boolean tty) |
ExecCreateCmd |
withUser(java.lang.String user) |
ExecCreateCmd |
withWorkingDir(java.lang.String workingDir) |
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 ExecCreateCmd withEnv(java.util.List<java.lang.String> env)
withEnv
in interface ExecCreateCmd
public ExecCreateCmd withPrivileged(java.lang.Boolean privileged)
withPrivileged
in interface ExecCreateCmd
public ExecCreateCmd withWorkingDir(java.lang.String workingDir)
withWorkingDir
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.util.List<java.lang.String> getEnv()
getEnv
in interface ExecCreateCmd
public java.lang.Boolean getPrivileged()
getPrivileged
in interface ExecCreateCmd
public java.lang.String getUser()
getUser
in interface ExecCreateCmd
public java.lang.String getWorkingDir()
getWorkingDir
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.