spotify / docker-kafka

Kafka (and Zookeeper) in Docker
Apache License 2.0
1.4k stars 643 forks source link

You run Kafka and Zookeeper with root permissions... Intended? #90

Open ioah86 opened 5 years ago

ioah86 commented 5 years ago

In general, it is not best practice to leave the user as root for Docker containers, since you buy yourself several security issues with that. I hope you are not running it like this in your production servers :-D

The solution is to set up a user in the Dockerfile and give it just the necessary permissions and then run Kafka/Zookeeper with these limited permissions.