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()
          force delete of an image, even if it's tagged in multiple repositories
 RemoveImageCmd withForce(boolean force)
          force parameter to force delete of an image, even if it's tagged in multiple repositories
 RemoveImageCmd withImageId(String imageId)
           
 RemoveImageCmd withNoPrune()
          prevent the deletion of parent images
 RemoveImageCmd withNoPrune(boolean noPrune)
          noprune parameter to prevent the deletion of parent images
 
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()
Description copied from interface: RemoveImageCmd
force delete of an image, even if it's tagged in multiple repositories

Specified by:
withForce in interface RemoveImageCmd

withForce

public RemoveImageCmd withForce(boolean force)
Description copied from interface: RemoveImageCmd
force parameter to force delete of an image, even if it's tagged in multiple repositories

Specified by:
withForce in interface RemoveImageCmd

withNoPrune

public RemoveImageCmd withNoPrune()
Description copied from interface: RemoveImageCmd
prevent the deletion of parent images

Specified by:
withNoPrune in interface RemoveImageCmd

withNoPrune

public RemoveImageCmd withNoPrune(boolean noPrune)
Description copied from interface: RemoveImageCmd
noprune parameter to prevent the deletion of parent images

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.