Error while working with image from gcr.io

I successfully moved the Docker container image to gcr.io with the following command:

$ gcloud docker push gcr.io/project-id-123456/my-image

But when I try to create a new module , I get the following error:

$ kubectl run my-image --image=gcr.io/project-id-123456/my-image
CONTROLLER  CONTAINER(S)  IMAGE(S)                           SELECTOR      REPLICAS
my-image    my-image      gcr.io/project-id-123456/my-image  run=my-image  1

$ kubectl get pods
NAME            READY  STATUS                                                                                                   RESTARTS   AGE
my-image-of9x7  0/1    Error pulling image (latest) from gcr.io/project-id-123456/my-image, Untar exit status 1 unexpected EOF  0          5m

He does not pull and my local:

$ docker rmi -f $(docker images -q) # Clear local image cache
$ gcloud docker pull gcr.io/project-id-123456/my-image:latest
Error pulling image (latest) from gcr.io/project-id-123456/my-image, Untar re-exec error: exit status 1: output: unexpected EOF

Can someone please suggest me how to fix this?

+4
source share
1 answer

Well, after digging into the Docker code base, I think I found some similar messages about what you see.

The way this error is displayed has changed in 1.7, but this thread seems to be related:   https://github.com/docker/docker/issues/14792

, 1.8:  https://github.com/docker/docker/pull/15040

, . :  https://github.com/docker/docker/pull/15040#issuecomment-125661037

, , , v1, - v2 .

- v2 : gcloud docker --server=beta.gcr.io push beta.gcr.io/project-id-123456/...

Pod "beta.gcr.io/...", v2.

+4

Source: https://habr.com/ru/post/1610053/


All Articles