File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
---
20
20
21
21
``` bash
22
- docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=` boot2docker ip` --env ADVERTISED_PORT=9092 spotify/kafka
22
+ docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=` docker-machine ip \` docker-machine active \` ` --env ADVERTISED_PORT=9092 spotify/kafka
23
23
```
24
24
25
25
``` bash
26
- export KAFKA=` boot2docker ip` :9092
26
+ export KAFKA=` docker-machine ip \` docker-machine active \` ` :9092
27
27
kafka-console-producer.sh --broker-list $KAFKA --topic test
28
28
```
29
29
30
30
``` bash
31
- export ZOOKEEPER=` boot2docker ip` :2181
31
+ export ZOOKEEPER=` docker-machine ip \` docker-machine active \` ` :2181
32
32
kafka-console-consumer.sh --zookeeper $ZOOKEEPER --topic test
33
33
```
34
34
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
# Optional ENV variables:
4
- # * ADVERTISED_HOST: the external ip for the container, e.g. `boot2docker ip`
4
+ # * ADVERTISED_HOST: the external ip for the container, e.g. `docker-machine ip \`docker-machine active\` `
5
5
# * ADVERTISED_PORT: the external port for Kafka, e.g. 9092
6
6
# * ZK_CHROOT: the zookeeper chroot that's used by Kafka (without / prefix), e.g. "kafka"
7
7
# * LOG_RETENTION_HOURS: the minimum age of a log file in hours to be eligible for deletion (default is 168, for 1 week)
You can’t perform that action at this time.
0 commit comments