- run the docker container using the commmand :
docker compose -f <.yml filename> up -d- To get into kafka
docker exec -it kafka /bin/sh
# ls
# cd opt
# ls
# cd kafka_2.13-2.8.1
#ls
#cd bin
#ls- To create a kafka topic
#kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic <topicname>- To view the topics created, use Offset Explorer Download it from here--> https://www.kafkatool.com/download.html