Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can lsof show open ports on alpine linux? [closed]

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

like image 382
user674669 Avatar asked Sep 05 '25 03:09

user674669


1 Answers

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

apk add lsof

should fix it.

like image 114
KamilCuk Avatar answered Sep 07 '25 20:09

KamilCuk