@@ -66,16 +66,6 @@ registry.access.redhat.com/ubi9/openjdk-21-runtime 1.18-4 80786be7434f
66
66
67
67
Your image is the `my-image` and the `registry.access.redhat.com/ubi9/openjdk-21` is the image used to build yours.
68
68
69
- == Removing images
70
-
71
- To remove your just created image:
72
-
73
- [.console-input]
74
- [source,bash,subs="+macros,+attributes"]
75
- ----
76
- docker image rm my-image
77
- ----
78
-
79
69
== Exploring the Desktop interface
80
70
81
71
Let's take a look at image management in the Desktop interfaces.
@@ -90,3 +80,62 @@ image::podman-desktop-images.png[alt="Podman Desktop Images tab", align="center"
90
80
We can see information about the image layers, and low-level information about the image in JSON format.
91
81
92
82
image::podman-desktop-image-info.png[alt="Podman Desktop Image Info tab", align="center"]
83
+
84
+
85
+ For now though, let's stick to the terminal and get a little more comfortable with the command line instructions.
86
+
87
+ == Managing images
88
+
89
+ The Podman or Docker CLI offer many ways to manage container images. You can find out more by issuing the following help command:
90
+
91
+ [.console-input]
92
+ [source,bash,subs="+macros,+attributes"]
93
+ ----
94
+ docker image -h
95
+ ----
96
+
97
+ [.console-output]
98
+ [source,text]
99
+ ----
100
+ Manage images
101
+
102
+ Description:
103
+ Manage images
104
+
105
+ Usage:
106
+ podman image [command]
107
+
108
+ Available Commands:
109
+ build Build an image using instructions from Containerfiles
110
+ diff Inspect changes to the image's file systems
111
+ exists Check if an image exists in local storage
112
+ history Show history of a specified image
113
+ import Import a tarball to create a filesystem image
114
+ inspect Display the configuration of an image
115
+ list List images in local storage
116
+ load Load image(s) from a tar archive
117
+ mount Mount an image's root filesystem
118
+ prune Remove unused images
119
+ pull Pull an image from a registry
120
+ push Push an image to a specified destination
121
+ rm Remove one or more images from local storage
122
+ save Save image(s) to an archive
123
+ scp Securely copy images
124
+ search Search registry for image
125
+ sign Sign an image
126
+ tag Add an additional name to a local image
127
+ tree Print layer hierarchy of an image in a tree format
128
+ trust Manage container image trust policy
129
+ unmount Unmount an image's root filesystem
130
+ untag Remove a name from a local image
131
+ ----
132
+
133
+ Let's try to remove your just created image:
134
+
135
+ [.console-input]
136
+ [source,bash,subs="+macros,+attributes"]
137
+ ----
138
+ docker image rm my-image
139
+ ----
140
+
141
+ Great! You're well on your way to becoming a Container Image expert :)
0 commit comments