
org.testifyproject.github.dockerjava.api.command.RemoveImageCmd Maven / Gradle / Ivy
package org.testifyproject.testifyproject.github.dockerjava.api.org.testifyproject.testifyprojectmand;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import org.testifyproject.testifyproject.github.dockerjava.api.exception.NotFoundException;
/**
*
* Remove an image, org.testifyproject.testifyprojectleting 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 org.testifyproject.testifyprojectlete of an image, even if it's tagged in multiple repositories
*/
RemoveImageCmd withForce(Boolean force);
/**
* noprune parameter to prevent the org.testifyproject.testifyprojectletion of parent images
*
*/
RemoveImageCmd withNoPrune(Boolean noPrune);
/**
* @throws NotFoundException
* No such image
*/
@Override
Void exec() throws NotFoundException;
interface Exec extends DockerCmdSyncExec {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy