com.github.dockerjava.api.command.RemoveImageCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.docker-java
Show all versions of org.apache.servicemix.bundles.docker-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package com.github.dockerjava.api.command;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import com.github.dockerjava.api.exception.NotFoundException;
/**
*
* Remove an image, deleting any tags it might have.
*
*/
public interface RemoveImageCmd extends SyncDockerCmd {
@CheckForNull
String getImageId();
@CheckForNull
Boolean hasForceEnabled();
@CheckForNull
Boolean hasNoPruneEnabled();
RemoveImageCmd withImageId(@Nonnull String imageId);
/**
* force parameter to force delete of an image, even if it's tagged in multiple repositories
*/
RemoveImageCmd withForce(Boolean force);
/**
* noprune parameter to prevent the deletion of parent images
*
*/
RemoveImageCmd withNoPrune(Boolean noPrune);
/**
* @throws NotFoundException
* No such image
*/
@Override
Void exec() throws NotFoundException;
interface Exec extends DockerCmdSyncExec {
}
}