mirror of
https://github.com/containers/podman.git
synced 2025-12-14 19:10:16 +08:00
images --size
Add a --size option to podman images to allow for disabling computing the size of listed images. If listing images is critical to performance, user may chose to turn off size computation to speed things up. Context: #13755 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@@ -312,4 +312,15 @@ Deleted: $pauseID"
|
||||
is "$output" ""
|
||||
}
|
||||
|
||||
@test "podman images --size" {
|
||||
run_podman images
|
||||
is "${lines[0]}" "REPOSITORY.*TAG.*IMAGE ID.*CREATED.*SIZE"
|
||||
run_podman images --noheading --format "{{.Size}}"
|
||||
is "$output" ".* MB"
|
||||
run_podman images --size=false
|
||||
is "${lines[0]}" "REPOSITORY.*TAG.*IMAGE ID.*CREATED"
|
||||
run_podman images --noheading --format "{{.Size}}" --size=false
|
||||
is "$output" "0 B"
|
||||
}
|
||||
|
||||
# vim: filetype=sh
|
||||
|
||||
Reference in New Issue
Block a user