diff --git a/sos/report/plugins/docker.py b/sos/report/plugins/docker.py index 8caddd6112..5423117f1b 100644 --- a/sos/report/plugins/docker.py +++ b/sos/report/plugins/docker.py @@ -97,6 +97,11 @@ def setup(self): insp = name if 'none' not in name else img_id self.add_cmd_output(f"docker inspect {insp}", subdir='images', tags="docker_image_inspect") + self.add_cmd_output( + f"docker image history {insp}", + subdir='images/history', + tags='docker_image_tree' + ) for vol in volumes: self.add_cmd_output(f"docker volume inspect {vol}", diff --git a/sos/report/plugins/podman.py b/sos/report/plugins/podman.py index 3d6f2b0810..d6f06f6a90 100644 --- a/sos/report/plugins/podman.py +++ b/sos/report/plugins/podman.py @@ -62,6 +62,7 @@ def setup(self): subcmds = [ 'info', + 'image trust show', 'images', 'images --digests', 'pod ps', @@ -109,6 +110,11 @@ def setup(self): insp = name if 'none' not in name else img_id self.add_cmd_output(f"podman inspect {insp}", subdir='images', tags='podman_image_inspect') + self.add_cmd_output( + f"podman image tree {insp}", + subdir='images/tree', + tags='podman_image_tree' + ) for vol in volumes: self.add_cmd_output(f"podman volume inspect {vol}",