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

后端 未结 5 1431
猫巷女王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:58

    You need to go to the Taskbar → right click the Docker icon → use option Switch to Windows containers...

    Source https://docs.docker.com/docker-for-windows/

提交回复
热议问题