docker-kafka
docker-kafka copied to clipboard
java.rmi.server.ExportException: Port already in use: 7203
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?
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