Running InfluxdB2 on Balena OS

Hi all,

I’m working on balena-sense project (Build an air quality monitor with InfluxDB, Grafana, and Docker on a Raspberry Pi) customised on my own sensors. I found it really awesome and full of potential.
I’m a complete newby but from what I can understand this project uses telegraf + influxdb Version 1. It is right?
An internal Influxdb is installed through the following Dockerfile on balena:

Now what I was trying to do is to replace the influxdb service with a new service running influxdb_v2.
I’m following this guide (for docker) from influxdb_v2 documentation Get started with InfluxDB | InfluxDB OSS 2.0 Documentation
but there is something wrong when balena execute the command.
Do you have any idea how to run successfully this service in balena? Thanks in advance for your help