glances icon indicating copy to clipboard operation
glances copied to clipboard

Show used port in container section

Open GBT55 opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. Show which ports are being used in the containers section, on glances.

Describe the solution you'd like Just adding a column and show the port is being used by each container, somewhat similar to when you do a $ docker ps command

GBT55 avatar May 13 '22 10:05 GBT55

This issue is stale because it has been open for 3 months with no activity.

github-actions[bot] avatar Jun 23 '24 01:06 github-actions[bot]

containers[0].ports {'61208/tcp': [{'HostIp': '0.0.0.0', 'HostPort': '61208'}, {'HostIp': '::', 'HostPort': '61208'}], '61209/tcp': [{'HostIp': '0.0.0.0', 'HostPort': '61209'}, {'HostIp': '::', 'HostPort': '61209'}]}

nicolargo avatar Dec 22 '24 18:12 nicolargo

Branch Show used port in container section #2054 includes a first version ok for one port but how to display it with multiples ports...

Also TODO: WebUI.

nicolargo avatar Apr 13 '25 15:04 nicolargo

Done on the develop branch.

The default behave is to display ports instead of command.

It is possible to return to the previous behavor (display command and not ports) by using the Glances conf file:

[containers]
...
disable_stats=ports
...

Will be release in the target milestone.

nicolargo avatar Nov 01 '25 09:11 nicolargo