So I am running Jenkins in a docker image on mac with the following command:
docker run -p 8080:8080 -p 50000:50000 --name jenkins -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11
So I can access from my local machine using localhost:8080, but from Jenkins I need to configure a plugin that requires to access an app on my local machine, but no idea how I can do that, so I was reading that I should use --network=host
but with that I can't access localhost:8080 anymore.
Any idea what I am missing, I need to be able to connect Jenkins with an app on localhost and be able to access Jenkins as well.