Level 4 Docker - Resolve Dockerfile Issues

Hi guys,

We can build the Docker now. Please try again.

@raymond.baoly - looks the issue still exits, getting same error when I try build the image. can you please check. Thanks.

ERROR: failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: httpd:2.4.43: failed to resolve source metadata for Docker Hub Container Image Library | App Containerization failed to copy: httpReadSeeker: failed open: failed to do request: Get “https://docker-registry-mirror.kodekloud.com/v2/library/httpd/manifests/sha256:cd88fee4eab37f0d8cd04b06ef97285ca981c27b4d685f0321e65c5d4fd49357?ns=docker.io”: dial tcp 10.0.0.6:443: i/o timeout

Hi @Kumar_m,

I just checked, and it’s working fine for me. Could you try again and let me know if the issue is still there?

Hi @raymond.baoly - Still getting the same error when I try building the image using Dockerfile.
I don’t get the error when I pull base image outside of dockerfile and build the image.

Hi @Kumar_m,

I’m still not able to reproduce the issue on my end. If you run into it again, please use the Feedback button to send a recorded screenshot or video to the team.

@raymond.baoly - I was able to complete the task now.

Thanks for your prompt responses.

Hi @raymond.baoly,

i am observing the same problem in 100 days of DevOps - Day 45. please help to check.

[root@stapp03 docker]# docker build -t httpd:latest .
[+] Building 91.5s (2/2) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 557B 0.0s
=> ERROR [internal] load metadata for Docker Hub Container Image Library | App Containerization 91.5s

[internal] load metadata for Docker Hub Container Image Library | App Containerization


Dockerfile:1

1 | >>> FROM httpd:2.4.43
2 |
3 | RUN sed -i “s/Listen 80/Listen 8080/g” /usr/local/apache2/conf/httpd.conf

ERROR: failed to build: failed to solve: DeadlineExceeded: DeadlineExceeded: httpd:2.4.43: failed to resolve source metadata for Docker Hub Container Image Library | App Containerization failed to copy: httpReadSeeker: failed open: failed to do request: Get “https://docker-registry-mirror.kodekloud.com/v2/library/httpd/manifests/sha256:53729354a74c9c146aa8726a8906e833755066ada1a478782f4dfb2ea6994b5d?ns=docker.io”: dial tcp 10.0.0.6:443: i/o timeout

Hi @Venkata_Pavan

I couldn’t reproduce this issue on my end. Could you please try again? If it fails, please try building it once more.

Thanks @raymond.baoly not sure what’s changed. This time it worked at the first try.

1 Like

@raymond.baoly


I faced this issue while doing the problem in 100 days of DevOps - Day 45

1 Like


I faced this issue while doing the problem in 100 days of DevOps - Day 45

Hi @prahack ,

Thanks for posting your query. I’ll forward this to the team. In the meantime, please pull the image first before building an image.

docker pull httpd:2.4.43

Regards,

Hello,
I am also experiencing the same issue. Yes it works when you pull it first, but when you submit the task for review it fails because of this line in the question:

Note: Please note that once you click on FINISH button all existing images, the containers will be destroyed and new image will be built from your Dockerfile.

Therefore, the pulled one will not be used during review, if I understand that right?

@Tej-Singh-Rana Thanks, image pulling is working, and Docker build is also working without any issues once the image is pulled. But the task evaluation is failing due to this image build issue.

Hi @wyonyango and @prahack ,

Thanks for sharing the detailed feedback. I’ve forwarded it to the KKE team. They will look into it and fix it as soon as possible.
I’ll keep you posted on any updates.

Regards,

1 Like

Hi @prahack and @wyonyango ,

Please give it another try. This time, it won’t remove the images that were pulled and built from the Dockerfile.

Regards,

Hi @Tej-Singh-Rana, worked for me. Thanks for the prompt response.

Thanks for the confirmation. :raised_hands: