My Provisioning Configuration, device.yml is on the host at /root/flowfuseDeviceAgent.device.yml
My docker compose is as copied from the docs.
The container fails to start with error: Invalid config file ‘/opt/flowforge-device/device.yml’: Failed to parse config file: Error: EISDIR: illegal operation on a directory, read’.
From this stackoverflow thread it seams if a file is mounted that doesn’t already exist in the container it is defaulted to a dir.
the /root/flowfuseDeviceAgent/device.yml must exist even as an empty file before bringing up the docker compose file else docker will create a directory with that name.
Please run the following command docker ps to get the container name for the device agent container then run docker inspect [device-agent-container-name]
I won’t be using portainer long term, I was just using it as a test. The plan is to create an ansible role that will deploy the device agent whenever we configure a new server.