Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't reach host.docker.internal from the docker container #147

Open
remmeltpit opened this issue Jul 2, 2024 · 0 comments
Open

Can't reach host.docker.internal from the docker container #147

remmeltpit opened this issue Jul 2, 2024 · 0 comments

Comments

@remmeltpit
Copy link

remmeltpit commented Jul 2, 2024

I have a service running locally (no container) and it has a proper Prometheus endpoint. It is reachable through http://localhost:8094/actuator/prometheus. When I start a separate curl container, I can reach the endpoint at http://host.docker.internal:8094/actuator/prometheus from within the container.

I started the promlens container as directed in the documentation: docker run -p 8099:8080 prom/promlens

I can reach the promlens endpoint at http://localhost:8099/, but when I enter http://host.docker.internal:8094/actuator/prometheus in the URL bar, an error message is displayed: Error validating server health: Not Found.

I am running MacOS.

What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant