Skip to content

Instantly share code, notes, and snippets.

@HassankSalim
Created November 3, 2020 14:03
Show Gist options
  • Save HassankSalim/dcbf5a900f207ee3cdd67adec5212b10 to your computer and use it in GitHub Desktop.
Save HassankSalim/dcbf5a900f207ee3cdd67adec5212b10 to your computer and use it in GitHub Desktop.
docker stop kafka-server && docker rm kafka-server
docker stop zookeeper-server && docker rm zookeeper-server
docker run -d --name zookeeper-server --network host -e ALLOW_ANONYMOUS_LOGIN=yes bitnami/zookeeper:latest
docker run -d --name kafka-server --network host -e ALLOW_PLAINTEXT_LISTENER=yes -e KAFKA_CFG_ZOOKEEPER_CONNECT=localhost:2181 bitnami/kafka:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment