Skip to content

docker plugin ls command output is not sorted by plugin name #1164

@adshmh

Description

@adshmh

Description
The output from docker plugin ls command is not sorted by plugin names (and changes order on repeating the command), e.g.:

$docker plugin ls
ID                  NAME                DESCRIPTION         ENABLED
c753fbc35b07        p1:latest           test plugin         false
8f818da86d15        p2:latest           test plugin         false
013f0525e658        p3:latest           test plugin         false
3e2fbda236fb        p5:latest           test plugin         false
917784fbd37c        p4:latest           test plugin         false

running the command again:

$ docker plugin ls
ID                  NAME                DESCRIPTION         ENABLED
917784fbd37c        p4:latest           test plugin         false
c753fbc35b07        p1:latest           test plugin         false
8f818da86d15        p2:latest           test plugin         false
013f0525e658        p3:latest           test plugin         false
3e2fbda236fb        p5:latest           test plugin         false

Steps to reproduce the issue:

  1. Create a few plugins
  2. Run docker plugin ls a few times and compare the output

Describe the results you received:
No specific order in the list of plugins

Describe the results you expected:
List of plugins sorted by name

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions