I need to get the size of an InfluxDb on disc. I am able to get the size on the windows cmd(I am in windows 11) using du -sh /var/lib/influxdb2/.
The problem is now that i want to access this data using node.js. Using child process, i can run docker commands and get the ouput e.g. docker ps.
But when i run docker exec -it influxdb du -sh /var/lib/influx2/engine which is the bash command, i am getting "the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'"
Any help or guidance would be highly appreciated.
execinstead ofexec -it