Simplify `docker ps` port forwarding output by merging ipv4 and ipv6 ports
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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