com.github.dockerjava.api.command
Interface RemoveContainerCmd
- All Superinterfaces:
- DockerCmd<Void>
- All Known Implementing Classes:
- RemoveContainerCmdImpl
public interface RemoveContainerCmd
- extends DockerCmd<Void>
Remove a container.
getContainerId
String getContainerId()
hasRemoveVolumesEnabled
boolean hasRemoveVolumesEnabled()
hasForceEnabled
boolean hasForceEnabled()
withContainerId
RemoveContainerCmd withContainerId(String containerId)
withRemoveVolumes
RemoveContainerCmd withRemoveVolumes(boolean removeVolumes)
withForce
RemoveContainerCmd withForce()
withForce
RemoveContainerCmd withForce(boolean force)
exec
Void exec()
throws NotFoundException
- Specified by:
exec
in interface DockerCmd<Void>
- Throws:
NotFoundException
- No such container
Copyright © 2014. All rights reserved.