title: java code for producer/consumer not able to connect kafka in docker setup
body: <p>I have built a docker image for kafka(wurstmeister/kafka-docker). Inside docker container I am able to create topic, produce messages and consume messages using the builtin shell scripts. Now I am using code hosted at <a href="https://github.com/mapr-demos/kafka-sample-programs" rel="nofollow noreferrer">https://github.com/mapr-demos/kafka-sample-programs</a> to connect to kafka broker from my host machine. After building and running the program nothing happens and program stucks. I guess producer.send is not able to connect to kafka broker. Any help is appreciated </p>