The examples command should be docker exec `docker exec -it kafka-monitoring-stack-docker-compose_kafka-connect_1 ./bin/kafka-topics --create --partitions 6 --replication-factor 3 --topic demo-topic`