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
43 lines (31 loc) · 1.05 KB
/
Copy pathRemoveContainerCmd.java
File metadata and controls
43 lines (31 loc) · 1.05 KB
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
36
37
38
39
40
41
42
43
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<Void> {
@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<RemoveContainerCmd, Void> {
}
}