I have downloaded "Docker for Windows Installer" and run the installer with option "Linux Container" in my Windows 10 machine. The installation went successful. Hyper-v got enabled. Also the virtualization is enabled.
I could successfully run the command docker --version. But when I am trying to run "docker run hello-world" I am getting the below error :
Unable to find image 'hello-world:latest' locally C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
When I went to option switch to Windows container, I could successfully run the docker image. But again when I switch back to Linux Container I am facing the same issue.
I have checked with DNS 8.8.8.8 in the settings, also tried restarting docker, but no help till now.
Also When I switch to Windows Container and try to run a Dockerfile I get the below error :
Sending build context to Docker daemon 113.2kB Step 1/4 : FROM java:8 8: Pulling from library/java image operating system "linux" cannot be used on this platform
Please help me.