com.github.dockerjava.core.command
Class RemoveImageCmdImpl
java.lang.Object
com.github.dockerjava.core.command.AbstrDockerCmd<RemoveImageCmd,Void>
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.
RemoveImageCmdImpl
public RemoveImageCmdImpl(RemoveImageCmd.Exec exec,
String imageId)
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.