Jul 30 2017 08:23 PM
As the title says, with Insiders 16237, files in a host mapped volume aren't recognised - e.g.
type filename.txt
doesn't work.
Specifying the full path however does work:
type C:\MappedVolume\filename.txt
Is this a known issue? Is this an appropriate forum to ask questions about docker/containers on Insiders or should I ask on the moby repo?
Aug 11 2017 10:21 AM
Aug 13 2017 03:24 PM - edited Aug 13 2017 03:31 PM
On the server, create a temp dir with a txt file in it:
[dc2dmat05]: PS C:\> mkdir temp Directory: C:\ Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 14/08/2017 8:17 AM temp [dc2dmat05]: PS C:\> cd temp [dc2dmat05]: PS C:\temp> echo 'This is a test!' > test.txt [dc2dmat05]: PS C:\temp> type .\test.txt This is a test! [dc2dmat05]: PS C:\temp>
Use my (Win7) workstation to create an interactive tty session:
C:\tmp λ $env:DOCKER_HOST='DC2DMAT05:2376' C:\tmp λ docker run -it -v C:/temp:C:/temp microsoft/windowsservercore-insider
Microsoft Windows [Version 10.0.16237.1001] (c) 2017 Microsoft Corporation. All rights reserved. C:\>dir Volume in drive C has no label. Volume Serial Number is 7216-718A Directory of C:\ 07/03/2017 03:14 PM 1,894 License.txt 07/02/2017 03:39 PM <DIR> PerfLogs 07/03/2017 03:15 PM <DIR> Program Files 07/02/2017 03:39 PM <DIR> Program Files (x86) 08/14/2017 08:15 AM <DIR> temp 07/03/2017 03:16 PM <DIR> Users 07/03/2017 03:14 PM <DIR> Windows 1 File(s) 1,894 bytes 6 Dir(s) 21,206,704,128 bytes free C:\>cd temp C:\temp>dir Volume in drive C has no label. Volume Serial Number is 7216-718A Directory of C:\temp 08/14/2017 07:55 AM <DIR> . 08/14/2017 07:55 AM <DIR> .. 08/14/2017 07:55 AM 36 test.txt 1 File(s) 36 bytes 2 Dir(s) 50,829,029,376 bytes free C:\temp>type test.txt The system cannot find the path specified. <-- !! Doesn't work !!!!!!!!!!
C:\temp>type .\test.txt
The system cannot find the path specified.
C:\temp>type C:\temp\test.txt <- !! Works only with the full path !! This is a test! C:\temp>copy test.txt C:\test.txt <- !! Again, doesn't work without full path !!
The system cannot find the path specified.
0 file(s) copied.
C:\temp>copy C:\temp\test.txt C:\test.txt
1 file(s) copied.
C:\temp>cd ..
C:\>type test.txt <-- !! Commands work fine when file isn't in a host mapped volume !!
This is a test!
C:\>
Aug 13 2017 03:26 PM
Aug 14 2017 12:24 PM
SolutionThanks for the detailed info! I found a dev familiar with the area and it's a known issue in that build. A fix is on the way so please try a new Insider release once it's out and let us know how it goes.
Aug 14 2017 03:22 PM
Aug 21 2017 05:26 PM
There isn't really a best place but this forum could become it.
A lot of developers are also reporting issues at https://www.github.com/moby/moby/issues but that's for issues in the open source code that Docker is built on. It's worth searching there too because you can see progress on many issues but it's not just Windows users. Do you have any suggestions on what would work best or other sites you check regularly?
Aug 21 2017 05:35 PM
Aug 28 2017 02:29 PM
We also support feedback via the Feedback Hub tool which comes with the Windows 10 client. Choose the Server category and then the appropriate subcategory. You may add attachments to the feedback if needed. When we release a new build, we provide a current list of known issues in the Feedback Hub announcement that accompanies the build.
Aug 28 2017 03:35 PM
The Windows blog posting that is linked to in the "new build" announcements in this forum has the same information about known issues, example for Build 16267: "See the Windows Insiders blog for more information, or check the Announcements in the Feedback Hub tool on your Windows 10 Insider device." Hope that helps.
Aug 28 2017 04:30 PM
Aug 14 2017 12:24 PM
SolutionThanks for the detailed info! I found a dev familiar with the area and it's a known issue in that build. A fix is on the way so please try a new Insider release once it's out and let us know how it goes.