Using Docker with -v “c:mydir:/mydir” or with -v “c:/mydir:/mydir” correctly mounts the directory C:mydir inside my container.
However, I once omitted the drive letter by mistake and did something like:
docker run -it –rm -v “/mydir:/mydir” bash
The files saved to /mydir inside the container didn’t appear in the Windows directory C:mydir. They reappear inside other Docker containers if I again mount “/mydir” without the drive letter. I cannot find these files anywhere on my hard drive.
So exactly which Windows directory got mounted inside the container when I omitted the drive letter in the example above?
Thanks…