Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to pull image from gcr.io

I've been trying to run the Hello Node tutorial for a couple of days now and I finally figured out what was preventing me from seeing the app, but I'm not sure why this is happening.

I looked at the Kubernetes events tab and kept seeing this error.

Failed to pull image "gcr.io/simpleapp-1073/hello-node": Error: image simpleapp-1073/hello-node:latest not found

simpleapp-1073 is my PROJECT_ID

When I pushed the docker image to the public docker hub and pointed my image attribute to that, everything finally started working.

Is there some trick to getting the private container registry working?

like image 392
Sandro Avatar asked Nov 18 '15 05:11

Sandro


People also ask

How do I pull an image from a private repository?

In order to pull images from your private repository, you'll need to login to Docker. If no registry URI is specified, Docker will assume you intend to use or log out from Docker Hub. Triton comes with several images built-in. You can view the available list with triton images .

How do I resolve Imagepullbackoff in Kubernetes?

To resolve it, double check the pod specification and ensure that the repository and image are specified correctly. If this still doesn't work, there may be a network issue preventing access to the container registry. Look in the describe pod text file to obtain the hostname of the Kubernetes node.

How do I dock a local Docker image to GCR?

Tag image with registry name This configures the docker push command to push the image to a specific location. The registry name format is: gcr.io/[PROJECT-ID]/[IMAGE] where [PROJECT-ID] is your Google Cloud Platform Console project ID and [IMAGE] is your image's name. You are now ready to push your image to GCR!


1 Answers

I had similar issue. Authentication of local docker with Google registry helped:

gcloud docker -a

and then

sudo docker pull gcr.io/simpleapp-1073/hello-node
like image 81
rav Avatar answered Oct 18 '22 03:10

rav