So as it turns out, Docker containers that listen on ports don't always report them to the host kernel in a way that shows up in /proc/net/{tcp,udp}. Therefore, Port should rely on CanConnect, just using localhost and the port number, rather than reading from those files.
So as it turns out, Docker containers that listen on ports don't always report them to the host kernel in a way that shows up in
/proc/net/{tcp,udp}
. Therefore,Port
should rely onCanConnect
, just using localhost and the port number, rather than reading from those files.