5

I tried to build a docker file on Windows OS. But i got this instead.

muhammad.iqbal@IQBAL MINGW64 /d/DockerTest
$ docker build .
Sending build context to Docker daemon 73.36 MB
Step 1/3 : FROM php:7.1.27-apache
Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: no such host

I have tried to restart and relaunch docker application but nothings change. i have read this and this. but it's on LInux OS, but how to do it on Windows OS.

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: no such host

lookup registry-1.docker.io: no such host

Gagantous
  • 432
  • 6
  • 29
  • 69
  • 1
    It seems registry-1.docker.io points to 192.168.65.1:53, are you sure your DNS configurations are correct? Are you using a proxy or VPN ? – Pierre B. Mar 24 '19 at 21:26
  • @PierreB. yes, i am really sure i didn't use any VPN. Because i could run it properly, but sometimes, i couldn't. – Gagantous Mar 24 '19 at 21:32

1 Answers1

3

Okay so just like Pierre B. comment, at the time of that issue, i was using my office's VPN. So it's pretty simple, just turn of the VPN and tried to pull it again.

But i don't know what's the reason unable to pull any images when i am using the office's VPN.

Gagantous
  • 432
  • 6
  • 29
  • 69