Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Connecting to Docker hub

Tags:

I have created a docker hub account and trying to connect on it to push an image. I am getting the following error:

>>>docker login -u <username> -p <password>  Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) 

I run this and i got the following message:

>>>curl https://registry-1.docker.io/v2/ {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]} 

Also:

>>> env | grep -i proxy 

gave no result(means that i dont have proxy settings??)

>>> docker version Client: Version:      1.12.3 API version:  1.24 Go version:   go1.6.3 Git commit:   6b644ec Built:        Wed Oct 26 22:01:48 2016 OS/Arch:      linux/amd64  Server: Version:      1.12.3 API version:  1.24 Go version:   go1.6.3 Git commit:   6b644ec Built:        Wed Oct 26 22:01:48 2016 OS/Arch:      linux/amd64 

Any idea how to overpass that?

like image 563
Mpizos Dimitris Avatar asked Dec 21 '16 12:12

Mpizos Dimitris


People also ask

How do I connect to Docker Hub from terminal?

Type docker login -u <your-username> on your terminal and paste your access token when requested by the password. Show activity on this post. In my case docker daemon is not running, so I just restarted it and re-executed same command. It worked!!

Is docker and Docker Hub same?

Docker Hub is Docker's official cloud-based registry for Docker images. As you might expect, since Docker Hub is Docker's official registry, it is the default registry when you install Docker.

How do I push to Docker Hub?

To push an image to Docker Hub, you must first name your local image using your Docker Hub username and the repository name that you created through Docker Hub on the web. You can add multiple images to a repository by adding a specific :<tag> to them (for example docs/base:testing ).

What is my Docker Hub URL?

Docker Hub official website has been moved to https://registry.hub.docker.com from https://hub.docker.com/.


1 Answers

Modified DNS server setting to 8.8.8.8 and it worked.

enter image description here

like image 54
deepak prakash Avatar answered Nov 14 '22 20:11

deepak prakash