Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to pull images no such host on Windows

Tags:

docker

windows

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

like image 545
Gagantous Avatar asked Oct 17 '22 05:10

Gagantous


1 Answers

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.

like image 52
Gagantous Avatar answered Nov 15 '22 05:11

Gagantous