linuxnetwork-programmingportalpine-linuxlsof

Can lsof show open ports on alpine linux?


I have a spring boot app running in alpine linux listening on port 8080. However, when I do:

$ lsof
$ lsof -i 8080

it doesn't show the open ports. Do you know what I am doing wrong?

It almost seems that lsof on alpine linux isn't honoring any arguments. It always shows the same output - just seems to ignore -i.

p

enter image description here


Solution

  • Install lsof from lsof, not from busybox. Busyboxs lsof is just only simple.

    apk add lsof
    

    should fix it.