com.github.dockerjava.api.command.RemoveContainerCmd 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 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 {
}
}