I'm facing issue Error: docker: Error response from daemon: the working directory <directory> is invalid, it needs to be an absolute path

I’m facing issue Error: docker: Error response from daemon: the working directory is invalid, it needs to be an absolute path. when ran script in Docker in Jenkins.
I was looking into docs and noticed that this issue occurs because my machine is Windows and Docker Image that I’m running is mcr.microsoft.com/playwright:v1.43.0-jammy ( image is based on Ubuntu 22.04 ).
Can I solve this issue with some Docker command or configuration?