Skip to content

Simplify docker ps port forwarding output by merging ipv4 and ipv6 ports #6869

Description

@iTrooz

Description

Here is an example output of docker ps with version 29.3.0

CONTAINER ID   IMAGE                 COMMAND                  CREATED         STATUS                     PORTS                                         NAMES
bcf2f5b75439   minio/minio:latest    "/usr/bin/docker-ent…"   2 months ago    Up 2 days                  0.0.0.0:3101->9000/tcp, [::]:3101->9000/tcp   minio

I would like to simplify such an output (where there are ipv4 and ipv6 port forward rules for the same port) to this:

CONTAINER ID   IMAGE                 COMMAND                  CREATED         STATUS                     PORTS                NAMES
bcf2f5b75439   minio/minio:latest    "/usr/bin/docker-ent…"   2 months ago    Up 2 days                  *:3101->9000/tcp,    minio

What do you think ? I could submit a PR for this

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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