The best way to get around the path change problem with Docker for Windows.
The purpose of
pwd
is to detect the equivalent path of the current directory if it were mounted inside a docker container. Since Docker does a path transformation from Windows to Linux, it can often be useful to know this path in advance.
- Docker for Windows: https://docs.docker.com/docker-for-windows/install/
For PowerShell user
PS C:\Users\SamSepiol> curl git.io/make.bat -o setup; .\setup
For cmd.exe user
curl -fsSL https://deno.land/x/install/install.sh | sh
Chocolatey (Windows):
choco install deno
Scoop (Windows):
scoop install deno
For Python developer
C:\Users\SamSepiol> pip install make.bat
For NodeJS developer
C:\Users\SamSepiol> npm install -g make.bat
For PHP developer
C:\Users\SamSepiol> npm install -g make.bat
As a standard GNU Make simply you
C:\Users\SamSepiol\MrProject> pwd
/host_mnt/c/Users/SamSepiol/MrProject
- Docker for Windows: https://docs.docker.com/docker-for-windows/install/
- NodeJS for Windows: https://nodejs.org/en/download/
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
docker run
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker