com.github.dockerjava.api.command
Interface RemoveImageCmd
- All Superinterfaces:
- DockerCmd<Void>
- All Known Implementing Classes:
- RemoveImageCmdImpl
public interface RemoveImageCmd
- extends DockerCmd<Void>
Remove an image, deleting any tags it might have.
getImageId
String getImageId()
hasForceEnabled
boolean hasForceEnabled()
hasNoPruneEnabled
boolean hasNoPruneEnabled()
withImageId
RemoveImageCmd withImageId(String imageId)
withForce
RemoveImageCmd withForce()
withForce
RemoveImageCmd withForce(boolean force)
withNoPrune
RemoveImageCmd withNoPrune(boolean noPrune)
exec
Void exec()
throws NotFoundException
- Specified by:
exec
in interface DockerCmd<Void>
- Throws:
NotFoundException
- No such image
Copyright © 2014. All rights reserved.