C3W3_Graded_Lab_Error__PROJECT_ID No such file or directory

tudent_04_90dd4e42cdb7@cloudshell:~/lab-files (qwiklabs-gcp-02-48cd9b3e2da5) echo {PROJECT_ID}
qwiklabs-gcp-02-48cd9b3e2da5
student_04_90dd4e42cdb7@cloudshell:~/lab-files (qwiklabs-gcp-02-48cd9b3e2da5) gcr.io/{PROJECT_ID}/mnist-train
-bash: gcr.io/qwiklabs-gcp-02-48cd9b3e2da5/mnist-train: No such file or directory

student_04_90dd4e42cdb7@cloudshell:~/lab-files (qwiklabs-gcp-02-48cd9b3e2da5)$ kubectl get pods
NAME READY STATUS RESTARTS AGE
multi-worker-worker-0 0/1 ErrImagePull 0 63s
multi-worker-worker-1 0/1 ErrImagePull 0 63s
multi-worker-worker-2 0/1 ErrImagePull 0 63s

student_04_90dd4e42cdb7@cloudshell:~/lab-files (qwiklabs-gcp-02-48cd9b3e2da5) kubectl logs --follow {JOB_NAME}-worker-0
Error from server (BadRequest): container “tensorflow” in pod “multi-worker-worker-0” is waiting to start: trying and failing to pull image
student_04_90dd4e42cdb7@cloudshell:~/lab-files (qwiklabs-gcp-02-48cd9b3e2da5) kubectl logs {JOB_NAME}-worker-1
Error from server (BadRequest): container “tensorflow” in pod “multi-worker-worker-1” is waiting to start: trying and failing to pull image

Hi,

I have moved this post to the MLEP course 3 category. Make sure if you have any course-specific doubts, explore the specialization category and post in the relevant course subcategory as course-specific mentors are actively answering the queries there and the threads in the general discussion might not come on their radar.

Hi! It’s possible that you weren’t able to push your image to the registry successfully. Please revisit this snippet in the lab and see if the build and push succeeds:


To build the image and push it to the registry execute the below commands.

IMAGE_NAME=mnist-train

docker build -t gcr.io/${PROJECT_ID}/${IMAGE_NAME} .
docker push gcr.io/${PROJECT_ID}/${IMAGE_NAME}

Hope this helps!

1 Like