You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed something weird I couldn't reproduce on other docker images such as ubuntu or on a "real" distribution (i.e: not running in a container engine).
When I launch the command: nc -l 9999, I expect to see the in /proc/net/tcp something like this:
where the 00000000:270F part corresponds to <local_addr>:<local_port>. In this sample, I see 0.0.0.0:9999 (once converted to decimal). However on alpine docker I see random number for the port part instead of the 9999 I expect.
Here is a screenshot of my session:
The text was updated successfully, but these errors were encountered:
robinmonjo
changed the title
Content of /proc/net/tcp not what it is supposed to be ?
Content of /proc/net/tcp not what it is supposed to be
Feb 11, 2016
I guess it's affecting every tools that use this file to gather system information such as lsof or netcat. I noticed this while working on a tool I'm writing that must be able to check if a PID as bound a given port (I don't want any dependencies, that is why I do it "manually").
I've noticed something weird I couldn't reproduce on other docker images such as
ubuntu
or on a "real" distribution (i.e: not running in a container engine).When I launch the command:
nc -l 9999
, I expect to see the in/proc/net/tcp
something like this:where the
00000000:270F
part corresponds to<local_addr>:<local_port>
. In this sample, I see0.0.0.0:9999
(once converted to decimal). However on alpine docker I see random number for the port part instead of the 9999 I expect.Here is a screenshot of my session:
The text was updated successfully, but these errors were encountered: