Docker connect: no route to host

Viewed 5110

unable to login or pull images from docker hub, from windows docker for desktop

I get the below error,

Error response from daemon: Get https://foo.bar.com/v2/: dial tcp 10.1.20.64:443: connect: no route to host
1 Answers

Try to remove the other bridged network other than the default one and try to pull the image again and it worked for me.

> docker network ls
NETWORK ID          NAME                       DRIVER              SCOPE
b139fe9f89e3        bridge                     bridge              local
e5dfbbee314v        network-1                  bridge              local
6ruvy84eg56n        network-2                  bridge              local
1e0ccbec292a        host                       host                local
e1c69bce4r56        none                       null                local

> docker network rm e5 6r

> docker pull private-repo:port-number/your/image:latest
Related