Folders prefixed with . (like /.dnx) is not persisted when image is built RRS feed

  • Question

  • Hi,

    I'm trying to build a Docker Image to run ASP.NET VNext Beta-8. The Docker File looks like this:

    FROM windowsservercore
    ENV USERPROFILE c:\\aspnetvnext
    RUN powershell -executionpolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString(''))}"
    RUN dnvm upgrade -r coreclr

    This installs dnvm and dnx into c:\aspnetvnext\.dnx, but when I run the image using "docker run -it aspnetvnext cmd" and CD into the directory, the .dnx directory is missing.

    I've reproduced the problem by running "docker run -it windowsservercore cmd", and then "mkdir test" and "mkdir .test", before commiting the container as an image, then running that image as a new container. When listing the directories, the ".test" is gone, while the "test" directory is still there.

    Is this a bug in Windows Server 2016 core (or the Docker Deamon) - or am I misunderstanding something?

    Best regards,

    Tuesday, November 3, 2015 7:57 PM