
dockerkafka/kafkaDockerfile for Apache Kafka
The image is available directly from DockerHub
You can browse the source in GitHub
sh$ docker pull dockerkafka/kafka
sh$ docker run -d --name kafkadocker_zookeeper_1 dockerkafka/zookeeper $ docker run -d --name kafkadocker_kafka_1 --link kafkadocker_zookeeper_1:zookeeper dockerkafka/kafka
sh$ docker run -it --rm --link kafkadocker_zookeeper_1:zookeeper dockerkafka/kafka kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 5 --topic test
###Connect to the server ...
Don't bother the WARN Property topic is not valid (kafka.utils.VerifiableProperties) warn. It is a bug KAFKA-1711.
After connection, you will got a stream. Every line is a new message.
sh$ docker run -it --rm --link kafkadocker_kafka_1:kafka dockerkafka/kafka kafka-console-producer.sh --broker-list kafka:9092 --topic test
After connection, all of the sent messages will be fetched, then wait for new messages.
sh$ $ docker run -it --rm --link kafkadocker_zookeeper_1:zookeeper --link kafkadocker_kafka_1:kafka dockerkafka/kafka kafka-console-consumer.sh --zookeeper zookeeper:2181 --topic test --from-beginning
Check out this repository, you will found the default Kafka configuration files under image/conf.
Start the container with the following line, so now you can modify the config in your host, and then start the server.
sh$ docker run -it --rm --volume `pwd`/image/conf:/opt/kafka_2.10-0.8.2.1/config kafkadocker/kafka /bin/bash
After you finished the customization & testing of the config changes, build your own image.
sh$ docker build --tag="my-image" .
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务