public class RemoveContainerCmdImpl extends AbstrDockerCmd<RemoveContainerCmd,Void> implements RemoveContainerCmd
RemoveContainerCmd.Execexecution| Constructor and Description |
|---|
RemoveContainerCmdImpl(RemoveContainerCmd.Exec exec,
String containerId) |
| Modifier and Type | Method and Description |
|---|---|
Void |
exec() |
String |
getContainerId() |
Boolean |
hasForceEnabled() |
Boolean |
hasRemoveVolumesEnabled() |
RemoveContainerCmd |
withContainerId(String containerId) |
RemoveContainerCmd |
withForce(Boolean force) |
RemoveContainerCmd |
withRemoveVolumes(Boolean removeVolumes) |
close, registryAuth, toStringpublic RemoveContainerCmdImpl(RemoveContainerCmd.Exec exec, String containerId)
public String getContainerId()
getContainerId in interface RemoveContainerCmdpublic Boolean hasRemoveVolumesEnabled()
hasRemoveVolumesEnabled in interface RemoveContainerCmdpublic Boolean hasForceEnabled()
hasForceEnabled in interface RemoveContainerCmdpublic RemoveContainerCmd withContainerId(String containerId)
withContainerId in interface RemoveContainerCmdpublic RemoveContainerCmd withRemoveVolumes(Boolean removeVolumes)
withRemoveVolumes in interface RemoveContainerCmdpublic RemoveContainerCmd withForce(Boolean force)
withForce in interface RemoveContainerCmdpublic Void exec() throws NotFoundException
exec in interface RemoveContainerCmdexec in interface SyncDockerCmd<Void>exec in class AbstrDockerCmd<RemoveContainerCmd,Void>NotFoundException - No such containerCopyright © 2017. All Rights Reserved.