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.
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 :-DThe 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.