listenr-0.1.0 is not a library.
listenr
listenr is a small CLI that shows current listening ports and enriches Docker-exposed ports with container/service names.
Install
Usage
The tool:
- collects listeners from
lsof -i -P -nand keeps only(LISTEN)rows - enriches matching host ports from
docker ps --format '{{.ID}}\t{{.Names}}\t{{.Ports}}' - prints a table with
PORT,PROTO,HOST,PROCESS, andDOCKER
If Docker is unavailable, listenr still prints local listeners and shows a warning on stderr.
Example Output
PORT PROTO HOST PROCESS DOCKER
3001 TCP * OrbStack (pid 11645) uptime-kuma (a2c2ce057b71) -> 3001/tcp
6379 TCP 127.0.0.1 redis-ser (pid 547) -
7751 TCP * OrbStack (pid 11645) tabemap-app (601f67a6c86c) -> 7751/tcp