Expected behavior
Mount volume and working directory
Actual behavior
returns error “path must be absolute”
Information
When I try to run Docker container using windows bash, I’ve got this error: path must be absolute
, but using Power Shell everything works fine.
Is this a bug or I’m doing it wrong??
Steps to reproduce the behavior
Try to run container using windows bash or git bash for windows
docker run -d --name myapp -p 80:3000 -v "$(pwd):/usr/app" -w "/usr/app" node npm start
docker run -d --name myapp -p 80:3000 -v "/d/projects/docker/myapp:/usr/app" -w "/usr/app" node npm start
docker run -d --name myapp -p 80:3000 -v "/d/projects/docker/myapp:/c/program files/git/usr/app" -w "/usr/app" node npm start
docker run -d --name myapp -p 80:3000 -v "D:/projects/docker/myapp:/usr/app" -w "/usr/app" node npm start
docker run -d --name myapp -p 80:3000 -v "D:/projects/docker/myapp:/usr/app" -w "C:/Program Files/Git/usr/app" node npm start