summaryrefslogtreecommitdiff
path: root/cmd/podman/images/list.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-14 07:18:52 -0400
committerGitHub <noreply@github.com>2022-04-14 07:18:52 -0400
commit001f619eab780721abe52ee72fe3c87caa7c652f (patch)
treee221f394a1a3f583f315494ca300160fa52ab2f2 /cmd/podman/images/list.go
parent15712c76fb198cec7509ff0cf401e357401d2d7d (diff)
parent97f93dc78e61820196f2adcc06ab8ec145ef6703 (diff)
downloadpodman-001f619eab780721abe52ee72fe3c87caa7c652f.tar.gz
podman-001f619eab780721abe52ee72fe3c87caa7c652f.tar.bz2
podman-001f619eab780721abe52ee72fe3c87caa7c652f.zip
Merge pull request #13872 from vrothberg/revert-size
Revert "images --size"
Diffstat (limited to 'cmd/podman/images/list.go')
-rw-r--r--cmd/podman/images/list.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/podman/images/list.go b/cmd/podman/images/list.go
index 10a2a4f87..9bddf1cff 100644
--- a/cmd/podman/images/list.go
+++ b/cmd/podman/images/list.go
@@ -87,7 +87,6 @@ func imageListFlagSet(cmd *cobra.Command) {
flags := cmd.Flags()
flags.BoolVarP(&listOptions.All, "all", "a", false, "Show all images (default hides intermediate images)")
- flags.BoolVarP(&listOptions.Size, "size", "", true, "Compute the size of each image")
filterFlagName := "filter"
flags.StringSliceVarP(&listOptions.Filter, filterFlagName, "f", []string{}, "Filter output based on conditions provided (default [])")
@@ -321,10 +320,7 @@ func lsFormatFromFlags(flags listFlagType) string {
row = append(row, "{{.Digest}}")
}
- row = append(row, "{{.ID}}", "{{.Created}}")
- if listOptions.Size {
- row = append(row, "{{.Size}}")
- }
+ row = append(row, "{{.ID}}", "{{.Created}}", "{{.Size}}")
if flags.history {
row = append(row, "{{if .History}}{{.History}}{{else}}<none>{{end}}")