I have a localhost:8080 running started using
docker run --rm -it -p 8080:8080 --entrypoint /bin/sh $$(docker build --target build -q -f $(DOCKERFILE) .)
That is just for verifying the docker build, then I exit out --rm -it
and the docker ps is stoped and gone as expected.
Non of the following is showing any port 8080, but I can open localhost:8080 and is shows my website?
lsof -n -i TCP:8080
netstat -anvp tcp | awk 'NR<3 || /LISTEN/'
0 Answers