It will be 6 hours now that I'm trying to access to kafka with my spring producer (which I launch on local machine). When I start producer I got this issue :
WARN 16800 --- [| adminclient-1] org.apache.kafka.clients.NetworkClient : [AdminClient clientId=adminclient-1] Error connecting to node 2dd34aa10a8e:9092 (id: 0 rack: null)
java.net.UnknownHostException: 2dd34aa10a8e
Where 2dd34aa10a8e is the container id (kafka)
Next is my producer properties :
spring.kafka.producer.bootstrap-servers=localhost:9092
For kafka, I'm using the ubuntu/kafka image from docker hub https://hub.docker.com/r/ubuntu/kafka (same for zookeeper https://hub.docker.com/r/ubuntu/zookeeper)
I'm using docker desktop and wsl2
I'm trying to make communicate producers with kafka