moby: I can’t login docker hub by command
Hi,there. I am starting to use docker. So,i am proceeding to learn docker with following docker document. http://docs.docker.com/userguide/dockerhub/
Then,i tryed to login docker hub by command. I already create docker hub account.But I can’t login docker hub by command. If i try to login by command,this error produce.
% docker login
Username: xxxx
Password:
Email: xxxxxxx@yahoo.co.jp
FATA[0033] Error response from daemon: Server Error: Post https://index.docker.io/v1/users/: dial tcp: lookup index.docker.io on 203.141.128.33:53: read udp 203.141.128.33:53: i/o timeout
i seem i could not access. How do i do?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 19 (4 by maintainers)
On MacOS X the problem was fixed after docker-machine restart default
The issue was resolved for me on Mac OSX after issuing
docker-machine restart default
, as well.Powering off boot2docker VM in VirtualBox and restarting boot2docker fix this issue for me.
on Ubuntu 14.04 , used to work for a while then,
_Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)_
Url is returning a json response in browser, so obviously not a dns issue.Update: I am from India, when i changed ISP from Jio 4G to BSNL, login works. Strange …
On Mac OSX I had to ssh into the boot2docker vm and add the hostname of the registry to the host file
docker-machine ssh
sudo vi /etc/hosts
After adding entry to the host file need to restart the docker daemon in the VM
/etc/init.d/docker restart
That resolved it for me
Still having this issue in despite of multiple restarts 😭
It’s weird because I can ping index.docker.io fine, is
docker login
doing something special?