docker / docker/cli

Expecting a better way to show a bunch of ports in "docker ps"

Open
#1,499 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/ux kind/enhancement
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

For the guy who run node on docker, or even an OS, there are always a bunch of ports need to be set.
But showing these ports in this way, showing in one line? It's quite difficult to read actually.
Example
dport

I know there's a way to create consecutive ranges of ports with command like "-p 8080-8090:80-90", but sometimes "which port" is not what I can dicide.
So if there's a way can printing ports in one column, rather than one line, it will be very nice.
Expect (similar)
dport2

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 at the docker ps output path and inspect how published ports are currently formatted, along with any existing CLI output tests. Confirm how a multiline or column-based port display should be selected and what the expected output is; done means docker ps presents multiple ports readably without breaking existing output.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.