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.


Nested Class Summary
static interface RemoveContainerCmd.Exec
           
 
Method Summary
 Void exec()
           
 String getContainerId()
           
 boolean hasForceEnabled()
           
 boolean hasRemoveVolumesEnabled()
           
 RemoveContainerCmd withContainerId(String containerId)
           
 RemoveContainerCmd withForce()
           
 RemoveContainerCmd withForce(boolean force)
           
 RemoveContainerCmd withRemoveVolumes(boolean removeVolumes)
           
 

Method Detail

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.