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
49 lines (36 loc) · 1.03 KB
/
Copy pathRemoveImageCmd.java
File metadata and controls
49 lines (36 loc) · 1.03 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
48
49
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.NotFoundException;
/**
*
* Remove an image, deleting any tags it might have.
*
*/
public interface RemoveImageCmd extends DockerCmd<Void>{
public String getImageId();
public boolean hasForceEnabled();
public boolean hasNoPruneEnabled();
public RemoveImageCmd withImageId(String imageId);
/**
* force delete of an image, even if it's tagged in multiple repositories
*/
public RemoveImageCmd withForce();
/**
* force parameter to force delete of an image, even if it's tagged in multiple repositories
*/
public RemoveImageCmd withForce(boolean force);
/**
* prevent the deletion of parent images
*/
public RemoveImageCmd withNoPrune();
/**
* noprune parameter to prevent the deletion of parent images
*
*/
public RemoveImageCmd withNoPrune(boolean noPrune);
/**
* @throws NotFoundException No such image
*/
public Void exec() throws NotFoundException;
public static interface Exec extends DockerCmdExec<RemoveImageCmd, Void> {
}
}