Join GitHub today
Error with KAFKA_JMX_OPTS #504
When the var KAFKA_JMX_OPTS is passed in a envfile  kafka doesn't start, from docker logs:
The same var with --env works perfectly.
We explicitly ignore this var and don't process it (https://github.com/wurstmeister/kafka-docker/blob/master/start-kafka.sh#L121) -could this be a difference in how docker handles this? Judging by the error is it related to having the
A quick test using the parameters from the README works fine for me:
I can then connect fine over jconsole, e.g.
If you can provide an example and steps to reproduce then we can take a look and try to rule out that it's anything with the kafka-docker image.
My fault... It's not a problem with the env file, it's a problem with the definition of the value in the env file.
The quotes take this effect when I inspect the container:
So, produces the error observed in the log:
Without quotes in the env-file:
Works like a charm and the inspection is right: