小编Lea*_*a A的帖子

Docker - 图像操作系统"windows"不能在此平台上使用

我在Windows 10机器上试过这个:

Dockerfile:

From microsoft/nanoserver
CMD ["echo", "Hello World"]
Run Code Online (Sandbox Code Playgroud)

PS

C:\FSD\Docker\Trial1> docker build -t lea/leatest .
Sending build context to Docker daemon  2.048kB
Step 1/2 : FROM microsoft/nanoserver
latest: Pulling from microsoft/nanoserver
bce2fbc256ea: Pulling fs layer
58f68fa0ceda: Pulling fs layer
image operating system "windows" cannot be used on this platform
Run Code Online (Sandbox Code Playgroud)

docker boot2docker dockerfile docker-compose docker-machine

58
推荐指数
4
解决办法
3万
查看次数