Docker - image operating system “windows” cannot be used on this platform

后端 未结 5 1317
猫巷女王i
猫巷女王i 2021-01-30 12:16

I tried this on my Windows 10 machine:

Dockerfile:

From microsoft/nanoserver
CMD [\"echo\", \"Hello World\"]
         


        
5条回答
  •  日久生厌
    2021-01-30 12:39

    Switch to Windows Container needs to selected from docker icon running under hidden icon from the bottom right... The moment you switch from Linux to Windows or Windows to Linux, Docker daemon automatically restarts to consider switched container...


    I would highly recommend you to view these 2 links to get more insight into how to create window containers:

    • Forum post

    • Blog post


    I really found the content of these links very helpful to make a window container which is still being enhanced for the generic issue we are all are facing since support for window container is yet to mature like Linux containers!

提交回复
热议问题