com.github.dockerjava.client.command
Class RemoveContainerCmd
java.lang.Object
com.github.dockerjava.client.command.AbstrDockerCmd<RemoveContainerCmd,Void>
com.github.dockerjava.client.command.RemoveContainerCmd
- All Implemented Interfaces:
- DockerCmd<Void>
public class RemoveContainerCmd
- extends AbstrDockerCmd<RemoveContainerCmd,Void>
Remove a container.
RemoveContainerCmd
public RemoveContainerCmd(String containerId)
getContainerId
public String getContainerId()
hasRemoveVolumesEnabled
public boolean hasRemoveVolumesEnabled()
hasForceEnabled
public boolean hasForceEnabled()
withContainerId
public RemoveContainerCmd withContainerId(String containerId)
withRemoveVolumes
public RemoveContainerCmd withRemoveVolumes(boolean removeVolumes)
withForce
public RemoveContainerCmd withForce()
withForce
public RemoveContainerCmd withForce(boolean force)
toString
public String toString()
- Overrides:
toString
in class Object
impl
protected Void impl()
throws DockerException
- Throws:
DockerException
Copyright © 2014. All rights reserved.