All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dockerjava.api.command.RemoveContainerCmd Maven / Gradle / Ivy

package com.github.dockerjava.api.command;

import com.github.dockerjava.api.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 DockerCmd {

	public String getContainerId();

	public boolean hasRemoveVolumesEnabled();

	public boolean hasForceEnabled();

	public RemoveContainerCmd withContainerId(String containerId);

	public RemoveContainerCmd withRemoveVolumes(boolean removeVolumes);

	public RemoveContainerCmd withForce();

	public RemoveContainerCmd withForce(boolean force);

	/**
	 * @throws NotFoundException No such container
	 */
	@Override
	public Void exec() throws NotFoundException;
	
	public static interface Exec extends DockerCmdExec {
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy