com.github.dockerjava.core.command
Class RemoveContainerCmdImpl
java.lang.Object
com.github.dockerjava.core.command.AbstrDockerCmd<RemoveContainerCmd,Void>
com.github.dockerjava.core.command.RemoveContainerCmdImpl
- All Implemented Interfaces:
- DockerCmd<Void>, RemoveContainerCmd
public class RemoveContainerCmdImpl
- extends AbstrDockerCmd<RemoveContainerCmd,Void>
- implements RemoveContainerCmd
Remove a container.
RemoveContainerCmdImpl
public RemoveContainerCmdImpl(RemoveContainerCmd.Exec exec,
String containerId)
getContainerId
public String getContainerId()
- Specified by:
getContainerId
in interface RemoveContainerCmd
hasRemoveVolumesEnabled
public boolean hasRemoveVolumesEnabled()
- Specified by:
hasRemoveVolumesEnabled
in interface RemoveContainerCmd
hasForceEnabled
public boolean hasForceEnabled()
- Specified by:
hasForceEnabled
in interface RemoveContainerCmd
withContainerId
public RemoveContainerCmd withContainerId(String containerId)
- Specified by:
withContainerId
in interface RemoveContainerCmd
withRemoveVolumes
public RemoveContainerCmd withRemoveVolumes(boolean removeVolumes)
- Specified by:
withRemoveVolumes
in interface RemoveContainerCmd
withForce
public RemoveContainerCmd withForce()
- Specified by:
withForce
in interface RemoveContainerCmd
withForce
public RemoveContainerCmd withForce(boolean force)
- Specified by:
withForce
in interface RemoveContainerCmd
toString
public String toString()
- Overrides:
toString
in class Object
exec
public Void exec()
throws NotFoundException
- Specified by:
exec
in interface DockerCmd<Void>
- Specified by:
exec
in interface RemoveContainerCmd
- Overrides:
exec
in class AbstrDockerCmd<RemoveContainerCmd,Void>
- Throws:
NotFoundException
- No such container
Copyright © 2014. All rights reserved.