|
string | Author [get] |
| Gets the image's author, or a blank string if no author information is available. More...
|
|
string | Comment [get] |
| Gets the comment saved with the image, or a blank string if no comment is available. More...
|
|
DateTimeOffset | CreationTime [get] |
| Gets the time at which the image was created. More...
|
|
string? | Digest [get] |
| Gets the image's digest. More...
|
|
IReadOnlyDictionary< string, string > | Labels [get] |
| Gets the labels that have been applied to the image. More...
|
|
GuestOsType | OsType [get] |
| Gets the kind of OS that containers made from this image run. More...
|
|
IImage? | ParentImage [get] |
| Gets the image that this image was built from, of any. More...
|
|
long | Size [get] |
| Gets the size, in bytes, of the image's writable layer. More...
|
|
IReadOnlyList< ImageName > | Tags [get] |
| Gets the names that the image is known by. More...
|
|
long | VirtualSize [get] |
| Gets the size, in bytes, of the image's read-only layers. More...
|
|
string | WorkingDirectory [get] |
| Gets the image's initial working directory. If the image did not specify a working directory, this will be set to the filesystem's root path. More...
|
|
ImageFullId | Id [get] |
| Gets the image's full ID. More...
|
|
This class holds a snapshot in time. Its information is immutable once created.
IImage? DockerSdk.Images.IImageInfo.ParentImage |
|
get |
Gets the image that this image was built from, of any.
Due to the way that Docker works, this will usually be null:
-
Images using image manifest v2 (the default since Docker 1.3.0) that are pulled from a registry will never have a parent image set.
-
Images built with Buildkit (the default since Docker 20.10) seem to never set the parent.
When the parent image is null, the history will not have any image/layer identifiers either, except the current image's.
long DockerSdk.Images.IImageInfo.Size |
|
get |
Gets the size, in bytes, of the image's writable layer.
Mounting the first container for the image will consume memory equal to the virtual size plus the size. Each subsequent container will consume memory equal to the size. These sizes do not include space consumed for log files, volumes, configuration files, swap space, or checkpoints.
long DockerSdk.Images.IImageInfo.VirtualSize |
|
get |
Gets the size, in bytes, of the image's read-only layers.
Mounting the first container for the image will consume memory equal to the virtual size plus the size. Each subsequent container will consume memory equal to the size. These sizes do not include space consumed for log files, volumes, configuration files, swap space, or checkpoints.