I have created SSH connect on PuTTY for CentOS 7 running on Oracle VM Virtualbox.
On PuTTy, I have installed Docker, followed by Docker Compose and they are up and running.
However, I am encountering error when i tried to download the Jenkins Docker Image found on https://hub.docker.com/r/jenkins/jenkins/ using:
[jenkins@localhost ~]$ docker pull jenkins/jenkins
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/jenkins/jenkins/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Ajenkins%2Fjenkins%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Also tried:
[jenkins@localhost ~]$ docker pull jenkins/jenkins:lts
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)
My internet connection is working perfectly fine.
Any leads to resolve this issue.? Thanks.
2
Answers
I believe you are not logged in to your docker hub account on your terminal.
use the command
docker login --username=yourhubusername [email protected]
To log in.And then try the pull command.
Try logging out first and login using the username instead of email.
Github Issues