My docker host listens on 172.17.0.1.
I can curl it from the host machine, but when I curl the same ip/port from within the container I get timeout.
I can ping anything from withing the container but I can’t access the host.
What am I missing ?
Container is Jenkins image run by this command:
docker run -d --name jenkins -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 jenkins/jenkins:2.222.3
Running curl on the host:
curl http://172.17.0.1:2375 {“message”:“page not found”}
Running curl from withing the docker will time out.
curl http://172.17.0.1:2375 curl: (7) Failed to connect to 172.17.0.1 port 2375: Connection timed out