1podman-rmi(1) General Commands Manual podman-rmi(1)
2
3
4
6 podman-rmi - Remove 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 causes Podman to remove all containers that are using the
35 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 option does not remove dangling parents of the specified image.
45
46
47 Remove an image by its short ID
48
49 $ podman rmi c0ed59d05ff7
50
51
52
53 Remove an image and its associated containers.
54
55 $ podman rmi --force imageID
56
57
58
59 Remove multiple images by their shortened IDs.
60
61 $ podman rmi c4dfb1609ee2 93fd78260bd1 c0ed59d05ff7
62
63
64
65 Remove all images and containers.
66
67 $ podman rmi -a -f
68
69
70
71 Remove an absent image with and without the --ignore flag.
72
73 $ podman rmi --ignore nothing
74 $ podman rmi nothing
75 Error: nothing: image not known
76
77
78
79
81 0 All specified images removed
82
83
84 1 One of the specified images did not exist, and no other failures
85
86
87 2 One of the specified images has child images or is being used by a
88 container
89
90
91 125 The command fails for any other reason
92
93
95 podman(1), skopeo-delete(1)
96
97
99 March 2017, Originally compiled by Dan Walsh dwalsh@redhat.com
100 ⟨mailto:dwalsh@redhat.com⟩
101
102
103
104 podman-rmi(1)