Public Repository

Last pushed: a year ago
Short Description
Kafka Manager is a tool for managing Apache Kafka developed by Yahoo Inc.
Full Description

Kafka Manager Dockerfile

Kafka Manager is a tool for managing Apache Kafka developed by Yahoo Inc.


The latest version of the docker image is based on:

The following actions will be performed during building a docker image:

  • install the additional packages (git, wget, tar, vim, mc, unzip, lsof)
  • kafka-manager home set to /opt/kafka-manager
  • delete all unused files ( bin/*.bat share/)
  • change debug level from INFO/WARN to ERROR into logback.xml and logger.xml files
  • set kafka-manager client port to 9000
  • define application.home -Dapplication.home=./
  • define ZK_HOST=localhost:2181
  • export JAVA_HOME
  • set TERM=xterm

How to build the image

If you want to build your own image, you should perform the following steps:

cd /tmp
git clone
cd kafka-manager-docker/
docker build -t <NAME:TAG> .
rm -rf /tmp/kafka-manager-docker    


docker build -t kafka-manager: .

Create a container

Quick start

docker run -d -p <YOUR_PORT>:9000 -e ZK_HOSTS=<YOUR_ZK_CLUSTER:YOUR_ZK_PORT> --name <YOUR_CONTAINER_NAME> intropro/kafka-manager:latest

If you don't specify ZK_HOST variable, the default value "localhost:2181" will be used by a docker container.


docker run -d -p 9000:9000 -e --name kafka-manager intropro/kafka-manager:latest

Another way is to use a docker-compose file.

docker-compose -f <PATH_TO_DOCKER_COMPOSE_FILE>.yml up -d    

If zookeeper service is not running on the localhost, you need to define ZK_HOST variable in your docker-compose file.


docker-compose -f /opt/docker/kafka-manager.yml up -d

Use own configuration file

You can use your own configuration file via environment variable KM_CONFIG



docker run -d -p 9001:9000 -e -v /opt/kmm-config:/mnt -e KMANAGER_CONFIG=/mnt/application.conf --name kafka-manager intropro/kafka-manager:latest

Pass aditional arguments to the container

You can pass additional arguments into the Kafka Manager container through the JAVA_OPTS or/and KMANAGER_ARGS variables.

Example how to pass JAVA HEAP size:

docker run -d -p 9000:9000 -e ZK_HOSTS="" -e JAVA_OPTS="-Xms512M -Xmx512M" --name kafka-manager intropro/kafka-manager

Example how to pass JAVA HEAP and own arguments:

docker run -d -p 9000:9000 -e ZK_HOSTS="" -e JAVA_OPTS="-Xms512M -Xmx512M" -e KMANAGER_ARGS="-Dname=KafkaManager" --name kafka-manager intropro/kafka-manager

Change a revision

To upgrade or downgrade Kafka Manager change the KMANAGER_VERSION and KMANAGER_REVISION variables. You can also upgrade or downgrade Java version via the JAVA_MAJOR, JAVA_UPDATE and JAVA_BUILD variables into the dockerfile.

Please note that build of docker image will be failed with JAVA_UPDATE above 112 !!!

Manage the docker container

Show the list of running containers.

docker ps

Show the list of all containers.

docker ps -a

start/stop/stats one or more containers

docker start <YOUR_CONTAINER_NAME>
docker stats <YOUR_CONTAINER_NAME>

support team -

Docker Pull Command