This is project that dockerize kafka cli
cp users_jaas.conf.example users_jaas.conf
cp client_sasl.properties.example client_sasl.properties
[ Connecting aws MSK ] Please configure users_jaas.conf
and client_sasl.properties
files with respect to your need. More Info here
docker-compose run kafka-client /bin/sh
docker-compose run kafka-client /bin/sh
./bin/kafka-topics.sh --bootstrap-server=hostServer --command-config client_sasl.properties --list