forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoveContainerCmd.java
More file actions
35 lines (23 loc) · 934 Bytes
/
Copy pathRemoveContainerCmd.java
File metadata and controls
35 lines (23 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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<Void> {
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
*/
public Void exec() throws NotFoundException;
public static interface Exec extends DockerCmdExec<RemoveContainerCmd, Void> {
}
}