Skip to content

--latest flag in docker image list #6161

@lczyk

Description

@lczyk

Tell us about your request

i find that i docker container list --latest quite a bit, and it would be helpful to have the same functionality (aka the --latest flag) in docker image list. I imagine the --last flag would be straightforward to port from container to image at the same time.

Which service(s) is this request for?

docker

Are you currently working around the issue?

docker image list --format '{{.CreatedAt}} {{.Repository}} {{.Tag}} {{.ID}}' | sort | head -n1 | cut -d' ' -f5-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions