简体   繁体   中英

Jenkins docker image throwing error while pulling

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 inte.net connection is working perfectly fine. Any leads to resolve this issue.? Thanks.

I believe you are not logged in to your docker hub account on your terminal. use the command docker login --username=yourhubusername --email=youremail@company.com To log in.

And then try the pull command.

Try logging out first and login using the username instead of email.

Github Issues

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM