I Confirm that the post sent by Sumit was the root cause of the problem. I do not have reputation enough to add a coment into their post.
So, yeah it is a problem with the property advertised.listeners and how it is invoked when using command line inside the bash.
KAFKA_ADVERTISED_LISTENERS:
PLAINTEXT://kafka:29092
,PLAINTEXT_HOST://localhost:9092
kafka-console-consumer --bootstrap-server
PLAINTEXT://kafka:29092
--topic dummy-topic