ches / docker-kafka

Apache Kafka on Docker
https://hub.docker.com/r/ches/kafka/
146 stars 137 forks source link

java.rmi.server.ExportException: Port already in use: 7203 #49

Open bondarYehor opened 7 years ago

bondarYehor commented 7 years ago

Hello,

I'm looking for good dockerized kafka environment for local development and found you repo suitable.

When I run "complex build" or make a docker-compose.yml everything started successfully but Kafka topic creation is failed with

kafka@ac447f2a0628:~$ kafka-topics.sh --create --topic test --replication-factor 1 --partitions 1 --zookeeper zookeeper:2181 Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 7203; nested exception is: java.net.BindException: Address already in use

Could you please help me with this?

ches commented 7 years ago

Hi, it looks like you must be using docker exec to get that shell—please don't do that! Use docker run instead. Here's a longer rant about it: https://github.com/ches/docker-kafka/pull/11#issuecomment-292752506