Expected behavior
New Docker container to be built
Actual behavior
Container fails to be built with the output:
Step 2 : RUN dir c:\Users\
---> Running in e3416e006143
The command 'cmd /S /C dir c:\Users\' returned a non-zero code: 255
Information
-
Running docker on Windows Server 2016 Technical Preview 5
-
Installed using the guide http://dille.name/blog/2016/06/08/build-ship-run-containers-with-windows-server-2016-tp5/
-
Docker file:
escape=`
FROM windowsservercore
RUN dir c:\Users\ -
Strangely this works for the first attempt after I restart, but any attempts thereafter (after changing the path in the dir command) fails with the error 255 shown above.
Steps to reproduce the behaviour
- Use the guide at http://dille.name/blog/2016/06/08/build-ship-run-containers-with-windows-server-2016-tp5/ to download and install docker on a Windows Server 2016 TP 5 server
- Create a dockerfile with the following
# escape=`
FROM windowsservercore
RUN dir c:\
- Build the dockerfile
- Change path in dir command to something different but valid (e.g. C:\Users)
- Try rebuilding dockerfile
