diff --git a/cmd/kpod/ps.go b/cmd/kpod/ps.go index f9bf76c4..ad2f1989 100644 --- a/cmd/kpod/ps.go +++ b/cmd/kpod/ps.go @@ -53,6 +53,7 @@ type psTemplateParams struct { type psJSONParams struct { ID string `json:"id"` Image string `json:"image"` + ImageID string `json:"image_id"` Command string `json:"command"` CreatedAt time.Time `json:"createdAt"` RunningFor time.Duration `json:"runningFor"` @@ -296,6 +297,7 @@ func getJSONOutput(containers []*libkpod.ContainerData) (psOutput []psJSONParams params := psJSONParams{ ID: ctr.ID, Image: ctr.FromImage, + ImageID: ctr.FromImageID, Command: ctr.ImageCreatedBy, CreatedAt: ctr.State.Created, RunningFor: time.Since(ctr.State.Created), diff --git a/docs/kpod-images.1.md b/docs/kpod-images.1.md index 26b743c6..96408090 100644 --- a/docs/kpod-images.1.md +++ b/docs/kpod-images.1.md @@ -51,6 +51,8 @@ kpod images --format json kpod images --format "{{.ID}}" +kpod images --filter dangling=true + ## SEE ALSO kpod(1)