Devin Michael created KAFKA-18458:
-------------------------------------

             Summary: Kafka Docker Image Documentation
                 Key: KAFKA-18458
                 URL: https://issues.apache.org/jira/browse/KAFKA-18458
             Project: Kafka
          Issue Type: Bug
          Components: documentation
            Reporter: Devin Michael


I wanted to let you know that when I used the default docker-compose.yml 
configuration found on the Apache Kafka docker image site 
(https://hub.docker.com/r/apache/kafka), I ran into an issue. Basically, I was 
not able to call the broker using the CLI tools for creating topics, etc. from 
outside of the docker container itself. I was able to resolve the issue by 
changing the KAFKA_LISTENERS property:

Value that did NOT work for me:
KAFKA_LISTENERS: PLAINTEXT://localhost:9092,CONTROLLER://localhost:9093

Value that worked for me:

KAFKA_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093

Once I made that change, I was able to communicate with the broker from outside 
the container. I figured out the change I needed to make based on the sample 
“docker run” command that appears on the same page just above the 
docker-compose.yml approach.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to