Docker Community Forums

Share and learn in the Docker community.

Connect to windows image fails with cmd

docker

(Samanduck123) #1

I have created a docker image from my windows 7 tar backup. Everything is fine and docker images shows the image.
Now, I do not know how to create a container from this image. It seems it does not know the cmd command at all.
I tried the following:

s# 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..

Is there any way to connect?


(Jeff Anderson) #2

Are you trying to run this against a windows server docker instance, or against a linux server docker instance? This failure would be expected on a non-windows daemon.