com.github.dockerjava.client.command
Class RemoveContainerCmd

java.lang.Object
  extended by com.github.dockerjava.client.command.AbstrDockerCmd<RemoveContainerCmd,Void>
      extended by com.github.dockerjava.client.command.RemoveContainerCmd
All Implemented Interfaces:
DockerCmd<Void>

public class RemoveContainerCmd
extends AbstrDockerCmd<RemoveContainerCmd,Void>

Remove a container.


Field Summary
 
Fields inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
baseResource
 
Constructor Summary
RemoveContainerCmd(String containerId)
           
 
Method Summary
 String getContainerId()
           
 boolean hasForceEnabled()
           
 boolean hasRemoveVolumesEnabled()
           
protected  Void impl()
           
 String toString()
           
 RemoveContainerCmd withContainerId(String containerId)
           
 RemoveContainerCmd withForce()
           
 RemoveContainerCmd withForce(boolean force)
           
 RemoveContainerCmd withRemoveVolumes(boolean removeVolumes)
           
 
Methods inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
exec, withBaseResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoveContainerCmd

public RemoveContainerCmd(String containerId)
Method Detail

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.