com.github.dockerjava.client.command
Class RemoveImageCmd
java.lang.Object
com.github.dockerjava.client.command.AbstrDockerCmd<RemoveImageCmd,Void>
com.github.dockerjava.client.command.RemoveImageCmd
- All Implemented Interfaces:
- DockerCmd<Void>
public class RemoveImageCmd
- extends AbstrDockerCmd<RemoveImageCmd,Void>
Remove an image, deleting any tags it might have.
RemoveImageCmd
public RemoveImageCmd(String imageId)
getImageId
public String getImageId()
hasForceEnabled
public boolean hasForceEnabled()
hasNoPruneEnabled
public boolean hasNoPruneEnabled()
withImageId
public RemoveImageCmd withImageId(String imageId)
withForce
public RemoveImageCmd withForce()
withForce
public RemoveImageCmd withForce(boolean force)
withNoPrune
public RemoveImageCmd withNoPrune(boolean noPrune)
toString
public String toString()
- Overrides:
toString
in class Object
impl
protected Void impl()
throws DockerException
- Throws:
DockerException
Copyright © 2014. All rights reserved.