Running tests in docker having issue

Hi,
We are running tests in docker and getting below error. Same works fine when we run in local linux box. Any help would be appreciated.

~$ K6_STATSD_ENABLE_TAGS=true docker run -v /home/hari/:/hari -i loadimpact/k6 run --out statsd --out cloud /home/hari/samplescript.js

      /\      |‾‾| /‾‾/   /‾‾/   
 /\  /  \     |  |/  /   /  /    
/  \/    \    |     (   /   ‾‾\  

/ \ | |\ \ | (‾) |
/ __________ \ |__| _\ ____/ .io

time=“2021-06-25T06:32:05Z” level=error msg=“The moduleSpecifier "/home/hari/samplescript.js" couldn’t be found on local disk. Make sure that you’ve specified the right path to the file. If you’re running k6 using the Docker image make sure you have mounted the local directory (-v /local/path/:/inside/docker/path) containing your script and modules so that they’re accessible by k6 from inside of the container, see Modules

Hi!

You are not mounting the test script at /home/hari in the container, but rather at
/hari. Modifying your command to this will with 99% certainty solve the error:

K6_STATSD_ENABLE_TAGS=true docker run -v /home/hari/:/hari -i loadimpact/k6 run --out statsd --out cloud /hari/samplescript.js

Awesome Simme, Thanks for your quick help