连接到Windows映像失败与cmd

我从我的Windows 7的tar备份创build了一个docker镜像。 一切都很好,docker图像显示图像。 现在,我不知道如何从这个图像创build一个容器。 看来它根本不知道cmd命令。 我尝试了以下内容:

# docker run -it 8bf47055c3d3 cmd exec: "CMD": executable file not found in $PATH docker: Error response from daemon: Container command not found or does not exist.. s# docker run -it 8bf47055c3d3 "Windows\System32\cmd.exe" exec: "CMD": executable file not found in $PATH docker: Error response from daemon: Container command not found or does not exist.. 

有什么方法可以连接?

我没有创build任何Dockerfile 。 只是采取了Windows的C:\驱动器的.tgz备份,并在我的Linux中运行以下命令来创build映像:

 cat file.tgz | docker import - devops:latest 

我不明白你希望用这个形象做什么。
在Windows上使用的Docker被用在boot2docker(tinycore)虚拟机中,它可以运行基于Linux映像的容器。 它不知道如何解释Windows系统调用。

你可能需要Docker for Windows( Windows 10可能包含Hyper-V ,或Windows Server 2016 TP4 + ,如“ 在Windows Server 2016上运行Docker Containers(快速入门指南) ”), 希望能够运行这样的映像。