monitor_docker icon indicating copy to clipboard operation
monitor_docker copied to clipboard

Feature Request: Expose port for each container

Open philipjholm opened this issue 2 years ago • 1 comments

Is there any way to get the port number for each container. If that is not possible today, would it be possible to add? Seems like a very important thing to be able to link to each container.

philipjholm avatar Jan 21 '23 17:01 philipjholm

This information is available in the docker container inspect ... command, so I guess this plugin would be able to access that data. However this can be any number of port mappings (source, target, TCP/UDP) to the host interface, or only internally exposed. That's not something that is trivially exposed as a single sensor value.

I'm curious though why you'd like this information available in HomeAssistant sensors? As these values basically never change once configured there's nothing dynamic that can be done with it.

RoboMagus avatar Aug 09 '23 14:08 RoboMagus

As @RoboMagus asks, it is a curious request. The port information is not something that should be in this integration, so I will close this ticket.

ualex73 avatar May 26 '24 12:05 ualex73