Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    But what if I want to use only 9092? I mean 9092 outside, not 29092 Commented Jul 10, 2019 at 4:58
  • @Maria Then change the port mapping PLAINTEXT_HOST://localhost:9092 with -p 9092:9092. You'll likely still want a separate listener for containers inside the Docker network Commented Jul 10, 2019 at 15:07
  • Do you mean that in this case I need only "-p 9092:9092" and don't need "-p 9092:9092" ? Commented Jul 11, 2019 at 6:42
  • @Maria If you have a client on the host, you will need to expose some port. That port will depend on how the advertised listeners are set. Commented Jul 11, 2019 at 20:28
  • 3
    @Maria I think I've answered that 3 times now? You can, yes, but only if you have changed to PLAINTEXT_HOST://localhost:9092, as compared to my answer Commented Jul 12, 2019 at 15:34