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
protected  Void impl()
           
 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, toString, wait, wait, wait
 

Constructor Detail

RemoveContainerCmd

public RemoveContainerCmd(String containerId)
Method Detail

withContainerId

public RemoveContainerCmd withContainerId(String containerId)

withRemoveVolumes

public RemoveContainerCmd withRemoveVolumes(boolean removeVolumes)

withForce

public RemoveContainerCmd withForce()

withForce

public RemoveContainerCmd withForce(boolean force)

impl

protected Void impl()
             throws DockerException
Throws:
DockerException


Copyright © 2014. All rights reserved.