forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoveImageCmd.java
More file actions
47 lines (35 loc) · 1 KB
/
Copy pathRemoveImageCmd.java
File metadata and controls
47 lines (35 loc) · 1 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
44
45
46
47
package com.github.dockerjava.api.command;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import com.github.dockerjava.api.exception.NotFoundException;
/**
*
* Remove an image, deleting any tags it might have.
*
*/
public interface RemoveImageCmd extends SyncDockerCmd<Void> {
@CheckForNull
String getImageId();
@CheckForNull
Boolean hasForceEnabled();
@CheckForNull
Boolean hasNoPruneEnabled();
RemoveImageCmd withImageId(@Nonnull String imageId);
/**
* force parameter to force delete of an image, even if it's tagged in multiple repositories
*/
RemoveImageCmd withForce(Boolean force);
/**
* noprune parameter to prevent the deletion of parent images
*
*/
RemoveImageCmd withNoPrune(Boolean noPrune);
/**
* @throws NotFoundException
* No such image
*/
@Override
Void exec() throws NotFoundException;
interface Exec extends DockerCmdSyncExec<RemoveImageCmd, Void> {
}
}