-
Notifications
You must be signed in to change notification settings - Fork 302
Description
I added telegraf via mensu.sh, but I gen an error when docker tries to start telegraf:
ERROR: for telegraf Cannot start service telegraf: OCI runtime create failed: container_linux.go:370: starting container
process caused: process_linux.go:459:container init caused: rootfs_linux.go:59: mounting "/home/pi/IOTstack/services/
telegraf/telegraf.conf" to rootfs at "/var/lib/docker/overlay2/700ca549a4bf04a8d
b3560194052c797c14aa54b31a9f87eb0d2942a85057cc7/merged/etc/telegraf/telegraf.conf"
caused: not a directory: unknown: Are you trying to mount a directory onto a
file (or vice-versa)? Check if the specified host path exists and is the expected type
The docker-compose.yml is as created by menu.sh:
telegraf:
container_name: telegraf
image: telegraf
restart: unless-stopped
volumes:
- ./services/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- influxdb
- mosquitto
networks:
- iotstack_nw
Any ideas how to fix this?