I am getting below error, while trying to run the program. What could possibly go wrong. I have installed Docker for Windows 10.
PS C:\Users\cvis> docker run hello-world
Unable to find image ‘hello-world:latest’ locally
latest: Pulling from library/hello-world
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: image operating system “linux” cannot be used on this platform.
See ‘C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help’.
Did your docker is configured to work with linux container?
It’s reacheable by doing a right click on the docker icon next to the windows 10 clock under the name “Switch to Linux containers” if it’s not configured.
Check if Hyper-V is enabled in BIOS of your machine too it’s needed by docker for windows.
Ok…here, i do have a question. That perticuler program will run only for Linux Containers. ?
Sorry i just don’t know that, i’m only running linux images. I never tried to run a Windows Server image or something like that … but with this configuration it works for me with Linux images.
To run the windows variant run the