{"id":28488733,"url":"https://github.com/thebinary/docker-kafka","last_synced_at":"2026-02-12T17:02:10.248Z","repository":{"id":52178688,"uuid":"328972104","full_name":"thebinary/docker-kafka","owner":"thebinary","description":"Kafka Docker","archived":false,"fork":false,"pushed_at":"2021-05-06T04:51:09.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-19T02:43:18.322Z","etag":null,"topics":["dockerfile","kafka","kafka-server","vanilla"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thebinary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-12T11:56:31.000Z","updated_at":"2021-05-05T17:05:35.000Z","dependencies_parsed_at":"2022-08-24T04:01:08.051Z","dependency_job_id":null,"html_url":"https://github.com/thebinary/docker-kafka","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/thebinary/docker-kafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinary%2Fdocker-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinary%2Fdocker-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinary%2Fdocker-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinary%2Fdocker-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thebinary","download_url":"https://codeload.github.com/thebinary/docker-kafka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinary%2Fdocker-kafka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29373837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dockerfile","kafka","kafka-server","vanilla"],"created_at":"2025-06-08T05:35:22.691Z","updated_at":"2026-02-12T17:02:10.233Z","avatar_url":"https://github.com/thebinary.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apache Kafka in Docker #\n\n__TAG names are based on Kafka binaries version as__\n\nthebinary/kafka:{scala_version}-{kafka_version}\n\neg: __thebinary/kafka:2.13-2.7.0__\n\n\n## Use as Kafka Server\n1. Run a zookeeper service  \nKafka is dependent on zookeeper service.\n```sh\ndocker run -d -it --network kafka --name zookeeper zookeeper\n```\n\n2. Create a server.properties config file\n```\n# server.properties\nbroker.id=0\nlisteners=PLAINTEXT://:9092\nlog.dirs=/tmp/kafka-logs\nnum.partitions=1\noffsets.topic.replication.factor=1\ntransaction.state.log.replication.factor=1\ntransaction.state.log.min.isr=1\nzookeeper.connect=zookeeper:2181\n```\n\n3. Run kafka\n```sh\ndocker run --network kafka -it -d -v $(PWD)/server.properties:/etc/kafka/config/server.properties thebinary/kafka\n```\n\n## Use as Kafka Tools\n\nAll kafka shell tools (scripts) can be used directly from these docker images. This can be used to run these kafka tools to interact with external kafka-brokers/kafka-zookeepers. Some examples are given below:\n\n1. Create Kafka Topic \n```\ndocker run --rm -it thebinary/kafka kafka-topics.sh --bootstrap-sever ext-kafka-01.thebinary.org --create --replication-factor 1 --partitions 1 --topic kafkatopic\n```\n\n2. List Kafka Topics\n```\ndocker run --rm -it thebinary/kafka kafka-topics.sh --bootstrap-sever ext-kafka-01.thebinary.org --list\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebinary%2Fdocker-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebinary%2Fdocker-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebinary%2Fdocker-kafka/lists"}