The Docker Desktop for Windows community forum is place where users can meet and discuss Docker Desktop for Windows and related technologies.
If you encounter problems with Docker for Windows, we recommend:
Finally, if your issue has not been addressed elsewhere, running:
- Settings Diagnose & Feedback Open Issues.
I am not able to post on Github yet so pasting here . I am a learner for Docker and this is the issue I got into.
Found an issue, tried a solution mentioned in another thread (https://github.com/docker/for-win/issues/4884) and landed in another issue.
PS I:> docker run hello-world
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/: dial tcp: lookup registry-1.docker.io: no such host.
See ‘C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help’.
Added this in hosts file :
34.228.211.243 registry-1.docker.io
PS I:> docker run hello-world
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/: dial tcp 64.185.245.183:443: connectex: No connection could be made because the target machine actively refused it.
- Windows Version: Microsoft Windows 10 Enterprise Version 10.0.16299 Build 16299
- Docker Desktop Version: 2.1.0.5 (40693)