docker / docker/cli

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

Open
#6,869 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature status/0-triage
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Docker CLI entry point for docker ps port rendering and compare it with the example output in the issue. Determine how paired IPv4 and IPv6 forwarding rules are represented, then verify that equivalent port mappings are merged into the proposed *:3101->9000/tcp format without changing unrelated output.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.