Docker no longer supports client versions below 1.5, so make sure you have client v1.5 and higher.
The Docker engine cannot connect to the registry. I ran into these problems a year ago due to the load on the docker hub. ( https://status.docker.com/ ) Now the public registry should work fine.
source share