Hello,
I try to use docker kapacitor container as a part of openjti infrastructure.
Kapacitor seemed pretty standart.
Compose file contains:
kapacitor:
image: kapacitor:1.7
container_name: kapacitor
restart: always
user: root
depends_on:
- influxdb
ports:
- '9092:9092'
volumes:
- /var/log:/var/log
- ./kapacitor/kapacitor.conf:/etc/kapacitor/kapacitor.conf
- ./kapacitor/data:/var/lib/kapacitor
But it doesn’t start with error:
2024/06/10 14:54:11 Using configuration at: /etc/kapacitor/kapacitor.conf
ts=2024-06-10T14:54:11.427Z lvl=error msg="encountered error" service=run err="failed to open diagnostic service: mkdir /var/log/kapacitor: permission denied"
run: failed to open diagnostic service: mkdir /var/log/kapacitor: permission denied
Can someone please point me to right direction how I need to config my permissions.
AFAIK all should work as normal because container started as root.