The Mock labs for the CKS course is having trouble with the image pulls.
The containers are in ErrImagePull status and failing due to docker image pull restrictions.
Kindly look into this issue and resolve asap.
Attaching sample log snippet from one of the failed containers,
429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: Understanding Your Docker Hub Rate Limit | Docker
Weâre aware of this. This affected many of our labs, most of which have been fixed in the last few days. CKS and KK Engineering labs still need to be done; I expect they will be fixed early in the coming week.
hope fix the issue soon
Please try it again â looks like the fix landed over the last few hours.
I see now issue with the trivy scans! The other issues are fixed and could see the pods running!
While trivy scans, get this docker pull issue again!
root@controlplane ~ â trivy image --severity=CRITICAL nginx:1.19
2024-08-01T00:59:38-04:00 INFO Vulnerability scanning is enabled
2024-08-01T00:59:38-04:00 INFO Secret scanning is enabled
2024-08-01T00:59:38-04:00 INFO If your scanning is slow, please try ââscanners vulnâ to disable secret scanning
2024-08-01T00:59:38-04:00 INFO Please see also Secret - Trivy for faster secret detection
2024-08-01T00:59:39-04:00 FATAL Fatal error image scan error: scan error: unable to initialize a scanner: unable to initialize an image scanner: 4 errors occurred:
* remote error: GET https://index.docker.io/v2/library/nginx/manifests/sha256:eba373a0620f68ffdc3f217041ad25ef084475b8feb35b992574cd83698e9e3c: TOOMANYREQUESTS: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading:
Two questions:
- Which lab is this? Iâve looked into this today, and the lab I checked is fixed and does not have this problem. So possibly youâre trying a different lab.
- How did you install trivy and what version are you using? I was using 0.54, installed using the instructions in the Trivy lab solution tab (i.e., using the official repo for trivy). This did not have the âtoo many requestsâ problem.
Also, if youâre still having this problem, try setting the following and trying trivy image SOME-IMAGE
again, to see if it helps:
export CONTAINERD_ADDRESS=/var/run/containerd/containerd.sock
I faced the issue in CKS course.
- Faced the issue in Lab-Mock Exam 2! Question No.9
- I was using the default installed trivy in the lab! Not a custom installed trivy.
The version is as follows,
root@controlplane ~ trivy version
Version: 0.51.2
I exported the CONTAINERD_ADDRESS, but still facing the same issue!
Vulnerability DB:
Version: 2
UpdatedAt: 2024-08-01 00:18:29.248059885 +0000 UTC
NextUpdate: 2024-08-01 06:18:29.248059715 +0000 UTC
DownloadedAt: 2024-08-01 05:48:51.129851474 +0000 UTC
FYI:
root@controlplane ~ env | grep CONTAINERD_ADDRESS
CONTAINERD_ADDRESS=/var/run/containerd/containerd.sock
root@controlplane ~ â trivy image nginx:1.19
2024-08-01T01:51:46-04:00 INFO Vulnerability scanning is enabled
2024-08-01T01:51:46-04:00 INFO Secret scanning is enabled
2024-08-01T01:51:46-04:00 INFO If your scanning is slow, please try ââscanners vulnâ to disable secret scanning
2024-08-01T01:51:46-04:00 INFO Please see also
2024-08-01T01:51:47-04:00 FATAL Fatal error image scan error: scan error: unable to initialize a scanner: unable to initialize an image scanner: 4 errors occurred:
* docker error: unable to inspect the image (nginx:1.19): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
* containerd error: image not found in containerd store: nginx:1.19
* podman error: unable to initialize Podman client: no podman socket found: stat /run/user/0/podman/podman.sock: no such file or directory
* remote error: GET https://index.docker.io/v2/library/nginx/manifests/sha256:eba373a0620f68ffdc3f217041ad25ef084475b8feb35b992574cd83698e9e3c: TOOMANYREQUESTS: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading:
The one variable that seems clear is the trivy version. Would you be willing to install 0.54.1 (which is the latest version); the release page is here.
Iâll see if the Mock Exam behaves differently than the Trivy lab, which I looked over today.