Skip to content

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

@remmeltpit-bitvavo

Description

@remmeltpit-bitvavo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions