
org.testifyproject.github.dockerjava.api.command.RemoveContainerCmd 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 a container.
*
* @param removeVolumes
* - true or false, Remove the volumes associated to the container. Defaults to false
* @param force
* - true or false, Removes the container even if it was running. Defaults to false
*/
public interface RemoveContainerCmd extends SyncDockerCmd {
@CheckForNull
String getContainerId();
@CheckForNull
Boolean hasRemoveVolumesEnabled();
@CheckForNull
Boolean hasForceEnabled();
RemoveContainerCmd withContainerId(@Nonnull String containerId);
RemoveContainerCmd withRemoveVolumes(Boolean removeVolumes);
RemoveContainerCmd withForce(Boolean force);
/**
* @throws NotFoundException
* No such container
*/
@Override
Void exec() throws NotFoundException;
interface Exec extends DockerCmdSyncExec {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy