I’m looking for a easy way to map the current directory when you do a docker run -v
The idea is to map the current build result directory into a container, independently of the user name of the developer or where he checked out the project
The solution that I’m aware of, is to use the full path to the current directory in a “cygwinied” format (/c/Users/WinUsername/directoryToMap)
The problem with that is that you have to “convert the format” manually from C:\Users\WinUsername\directoryToMap, making it very hard to create a batch file or giving “directory independent” instructions.
IS there a command line trick or a special syntax for map the current directory?
Something like allows me to been in the directory C:\Users\WinUsername\directoryToMap and simply run something similar to
docker run -v cygwinfy(.):/projectDir imageName