21

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

Nakilon
  • 34,866
  • 14
  • 107
  • 142
user674669
  • 10,681
  • 15
  • 72
  • 105

1 Answers1

28

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

apk add lsof

should fix it.

KamilCuk
  • 120,984
  • 8
  • 59
  • 111
  • any alternative to installing additional packages? – Kamafeather Feb 23 '21 at 13:06
  • 2
    `any alternative to installing additional packages? ` No. Shell is just a tool to run other programs - without other programs, there is nothing to run. Instead of "installing" you can compile it yourself. – KamilCuk Feb 23 '21 at 13:41