I am trying to start kafka inside a container via podman-compose. I am using /opt/kafka/kafka_2.12-2.4.1/bin/kafka-server-start.sh
which is fine. However, I am mounting a directory that contains the properties file /home/vagrant/repos/kafkazookeeper/config:/home/kafka/config
. Right now, this properties file has owner/group permissions of nobody/nobody
. On the host, the kafka user is kafka:x:1001:1001::/home/kafka:/bin/bash
but in the container, the kafka user is kafka:x:1000:0::/opt/kafka/:/bin/bash
I've tried using --uidmap 1001:kafka
in the docker-compose.yaml but that didn't work. Any thoughts are greatly appreciated.