1podman-rmi(1) General Commands Manual podman-rmi(1)
2
3
4
6 podman-rmi - Removes one or more locally stored images
7
8
10 podman rmi [options] image [...]
11
12
13 podman image rm [options] image [...]
14
15
17 Removes one or more locally stored images. Passing an argument image
18 deletes it, along with any of its dangling parent images. A dangling
19 image is an image without a tag and without being referenced by another
20 image.
21
22
23 Note: To delete an image from a remote registry, use the skopeo delete
24 command. Some registries do not allow users to delete an image via a
25 CLI remotely.
26
27
29 --all, -a
30 Remove all images in the local storage.
31
32
33 --force, -f
34 This option will cause podman to remove all containers that are using
35 the image before removing the image from the system.
36
37
38 --ignore, -i
39 If a specified image does not exist in the local storage, ignore it and
40 do not throw an error.
41
42
43 --no-prune
44 This options will not remove dangling parents of specified image
45
46
47 Remove an image by its short ID
48
49
50 $ podman rmi c0ed59d05ff7
51
52
53
54 Remove an image and its associated containers.
55
56
57 $ podman rmi --force imageID
58
59
60
61 Remove multiple images by their shortened IDs.
62
63
64 $ podman rmi c4dfb1609ee2 93fd78260bd1 c0ed59d05ff7
65
66
67
68 Remove all images and containers.
69
70
71 $ podman rmi -a -f
72
73
74
75 Remove an absent image with and without the --ignore flag.
76
77
78 $ podman rmi --ignore nothing
79 $ podman rmi nothing
80 Error: nothing: image not known
81
82
83
84
86 0 All specified images removed
87
88
89 1 One of the specified images did not exist, and no other failures
90
91
92 2 One of the specified images has child images or is being used by a
93 container
94
95
96 125 The command fails for any other reason
97
98
100 podman(1), skopeo-delete(1)
101
102
104 March 2017, Originally compiled by Dan Walsh dwalsh@redhat.com
105 ⟨mailto:dwalsh@redhat.com⟩
106
107
108
109 podman-rmi(1)