Toomanyrequests error upon building a docker image

There is a predefined Dockerfile in the lab.
I tried to build the image using docker and I’m facing the following issue:

$ docker build -t webapp-color .
Sending build context to Docker daemon 125.4kB
Step 1/6 : FROM python:3.6
toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: Understanding Your Docker Hub Rate Limit | Docker

Can somebody from @kodekloud2000 please look into this?
Thank you!

BTW I tried restarting the lab multiple times, but the problem still persists.

As always, a link to the lab you are talking about is useful, so I can try this as well.

I am facing the same,

Here is a link to the lab: Question 15

https://learn.kodekloud.com/user/courses/docker-training-course-for-the-absolute-beginner/module/672dc9a2-52ce-467f-b00c-c2f16185479b/lesson/b6893ba1-9b04-4997-82fc-40c8f285af1c

$ docker pull nginx:1.14-alpine
Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

https://learn.kodekloud.com/user/courses/docker-training-course-for-the-absolute-beginner/module/26faab43-a0ea-4355-9a94-f0bac957b507/lesson/d3a90d5f-f354-4574-b8cc-97935f3374e8?autoplay=true

I’m also facing the same issue with this lab as well
https://learn.kodekloud.com/user/courses/docker-training-course-for-the-absolute-beginner/module/26faab43-a0ea-4355-9a94-f0bac957b507/lesson/833e53c4-7a78-4706-b6cd-468136e305ff

i’m also facing the same issue with all ckad labs and mock exams :
https://learn.kodekloud.com/user/courses/certified-kubernetes-application-developer-ckad/module/36d5003c-cbf5-4311-9e52-78a17776f919/lesson/42852289-c2cb-4dd3-afed-b7ff35c2d914

The same error with CKA mock exams every docker image

i am facing same issue

I’m getting this error on almost every lab question in docker wherever there is a requirement to pull an image from the docker hub.

Facing this issue even in playground. As I was not able to solve labs, I tried pulling an image in the playground. Literally there are 0 images present on the system yet it says that I’ve reached the pull limit. - FYI

Same problem at engineer.kodekloud.com

@rob_kodekloud Almost all the labs has same issue. simple docker image pull errors out with limit reached.

https://learn.kodekloud.com/user/courses/certified-kubernetes-security-specialist-cks/module/d67be5ee-871d-4435-a187-382610cb6a1f/lesson/058cc5f9-4239-44ec-8021-e9201d4edc2b

This is part of a general outage. We’re working to restore access to DockerHub, but still don’t have an estimate when these labs will be working again.

To continue the lab, you can edit /etc/docker/daemon.json, add registry-mirrors

{
  "registry-mirrors": [
      "https://mirror.gcr.io"
    ]
}

Then restart docker

systemctl restart docker.service 

For containerd, add registry mirror to /etc/containerd/config.toml under, “[plugins.“io.containerd.grpc.v1.cri”.registry.mirrors]”

      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://mirror.gcr.io"]

And restart containerd

systemctl restart containerd.service 

Hello @tedzhang, Tried your solution for resolving the issue for Docker.

As soon as I restart the docker service I’m getting the following error:

[banner@stapp03 ~]$ sudo systemctl restart docker.service
Job for docker.service failed because the control process exited with error code.
See “systemctl status docker.service” and “journalctl -xeu docker.service” for details.

image
The above shown logs are taken by executing the following command:
"journalctl -xeu docker.service

and the task link is as follows:

This trick worked for my lab related to kubernetes.