Skip to content

host.docker.internal is rewritten to localhost for no reason #979

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

Closed
4 tasks done
pkit opened this issue Mar 23, 2025 · 2 comments
Closed
4 tasks done

host.docker.internal is rewritten to localhost for no reason #979

pkit opened this issue Mar 23, 2025 · 2 comments
Labels
status/invalid This doesn't seem right status/triage/completed Automatic triage completed

Comments

@pkit
Copy link

pkit commented Mar 23, 2025

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

@Haarolean the issue lies with rewriting requests as localhost for host.docker.internal within kafka-ui
Lo and behold:

$ docker run --rm -it -p 8083:8080 \
--add-host=host.docker.internal:host-gateway \
-e DYNAMIC_CONFIG_ENABLED=true \
ghcr.io/kafbat/kafka-ui

In the UI enter host.docker.internal and 39092
What I see in the log?

2025-03-23 16:33:39,223 WARN  [kafka-admin-client-thread | kui-admin-client-validation-1742747619215] o.a.k.c.NetworkClient: [AdminClient clientId=kui-admin-client-validation-1742747619215] Connection to node 1 (localhost/127.0.0.1:39092) could not be established. Node may not be available.

Why TF it's localhost???

Image

Expected behavior

No response

Your installation details

See above

Steps to reproduce

See above

Screenshots

No response

Logs

No response

Additional context

No response

@pkit pkit added status/triage Issues pending maintainers triage type/bug Something isn't working labels Mar 23, 2025
@kapybro kapybro bot added status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Mar 23, 2025
Copy link

Hi pkit! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues.
Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

@Haarolean
Copy link
Member

It can not be 'rewritten', at least not by the app. Please check your (advertised) listeners configs for the kafka cluster and consult with the (kafka) docs on how you should set them up. Can't help further without related configs.

Also, our compose examples: https://github.com/kafbat/kafka-ui/tree/main/documentation/compose

@Haarolean Haarolean closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2025
@Haarolean Haarolean added status/invalid This doesn't seem right and removed type/bug Something isn't working status/triage/manual Manual triage in progress labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/invalid This doesn't seem right status/triage/completed Automatic triage completed
Projects
None yet
Development

No branches or pull requests

2 participants