com.github.dockerjava.core.command
Class RemoveImageCmdImpl

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

public class RemoveImageCmdImpl
extends AbstrDockerCmd<RemoveImageCmd,Void>
implements RemoveImageCmd

Remove an image, deleting any tags it might have.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.RemoveImageCmd
RemoveImageCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
RemoveImageCmdImpl(RemoveImageCmd.Exec exec, String imageId)
           
 
Method Summary
 Void exec()
           
 String getImageId()
           
 boolean hasForceEnabled()
           
 boolean hasNoPruneEnabled()
           
 String toString()
           
 RemoveImageCmd withForce()
           
 RemoveImageCmd withForce(boolean force)
           
 RemoveImageCmd withImageId(String imageId)
           
 RemoveImageCmd withNoPrune(boolean noPrune)
           
 
Methods inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
toDockerException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoveImageCmdImpl

public RemoveImageCmdImpl(RemoveImageCmd.Exec exec,
                          String imageId)
Method Detail

getImageId

public String getImageId()
Specified by:
getImageId in interface RemoveImageCmd

hasForceEnabled

public boolean hasForceEnabled()
Specified by:
hasForceEnabled in interface RemoveImageCmd

hasNoPruneEnabled

public boolean hasNoPruneEnabled()
Specified by:
hasNoPruneEnabled in interface RemoveImageCmd

withImageId

public RemoveImageCmd withImageId(String imageId)
Specified by:
withImageId in interface RemoveImageCmd

withForce

public RemoveImageCmd withForce()
Specified by:
withForce in interface RemoveImageCmd

withForce

public RemoveImageCmd withForce(boolean force)
Specified by:
withForce in interface RemoveImageCmd

withNoPrune

public RemoveImageCmd withNoPrune(boolean noPrune)
Specified by:
withNoPrune in interface RemoveImageCmd

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 RemoveImageCmd
Overrides:
exec in class AbstrDockerCmd<RemoveImageCmd,Void>
Throws:
NotFoundException - No such image


Copyright © 2014. All rights reserved.