diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-09-30 13:50:08 +0200 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-09-30 14:10:21 +0200 |
commit | 02b0f9fc393ab7bcbc1d555ac4386899daad59fd (patch) | |
tree | a38708b170e3f3376339eaa4ccb4b68d34103117 /libpod/define | |
parent | d88acd83a1bdd260fc69e0ff115ff99d55bb7760 (diff) | |
download | podman-02b0f9fc393ab7bcbc1d555ac4386899daad59fd.tar.gz podman-02b0f9fc393ab7bcbc1d555ac4386899daad59fd.tar.bz2 podman-02b0f9fc393ab7bcbc1d555ac4386899daad59fd.zip |
container inspect: include image digest
Include the digest of the image in `podman container inspect`. The image
digest is a key information for auditing as it defines the identify of
an image. This way, it can be determined whether a container used an
image with a given CVE etc.
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'libpod/define')
-rw-r--r-- | libpod/define/container_inspect.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/define/container_inspect.go b/libpod/define/container_inspect.go index da5c58f27..7a00d708c 100644 --- a/libpod/define/container_inspect.go +++ b/libpod/define/container_inspect.go @@ -659,6 +659,7 @@ type InspectContainerData struct { Args []string `json:"Args"` State *InspectContainerState `json:"State"` Image string `json:"Image"` + ImageDigest string `json:"ImageDigest"` ImageName string `json:"ImageName"` Rootfs string `json:"Rootfs"` Pod string `json:"Pod"` |