How do I pull a private docker image into crio?

228 views Asked by At

I'm debugging why a container runs fine locally with docker but not on a k8s backend. One of the steps I'd like to debug is running the image locally with crictl like k8s does instead of docker.

I have crio up locally on my machine but I can't pull the problem image into the crio repo because it's in a private gcr.io repo that requires gcloud to authenticate.

As I understand, I cannot configure crictl to authenticate with gcloud (or else I haven't been able to find such documentation). But I can configure the containerd service to authenticate as a service account. I'm just a dev so I don't think I should set up my local machine to have a service account authentication with my companies private repo like the k8s node does.

Now I do have the image pulled in my docker repo, which is (allegedly) just a file on my computer. And the crio repo is (allegedly) just a file on my computer. Is there some way to copy the image over locally? Or do I have to figure out crictl authentication?

0

There are 0 answers