Skip to content

Why pull from "gcr.io" registry when I create pod? #7090

Closed
@lokikiller

Description

@lokikiller

I appointed the key-values as follows:
"image": "docker.io/redis"

and the minion also have the redis image

but when I cat the logs:
"Failed to create pod infra container: image pull failed for gcr.io/google_c..."

I can't understand it

Activity

roberthbailey

roberthbailey commented on Apr 21, 2015

@roberthbailey
Contributor

If you want to pull an image from the public dockerhub, you don't need to add a domain name prefix. You can just say "image": "redis".

lokikiller

lokikiller commented on Apr 21, 2015

@lokikiller
Author

thanks for your answering, but it also can not take effect when i change it to "image":“redis”, it also pulling from gcr.io @roberthbailey

fgrzadkowski

fgrzadkowski commented on Apr 21, 2015

@fgrzadkowski
Contributor

For each pod we also create an infra container that is used to workaround some docker limitation. This artificial container uses image gcr.io/google_container/pause:go (or something similar). From your error message I assume this step failed. Do you have some more logs about this failure?

lokikiller

lokikiller commented on Apr 21, 2015

@lokikiller
Author

As you say, I see the logs carefully, and find it really the "gcr.io/google_container/pause" image can not pull, is there any other way to pull the image? @fgrzadkowski Thanks a lot

fgrzadkowski

fgrzadkowski commented on Apr 21, 2015

@fgrzadkowski
Contributor

What's your environment? Where do you start your cluster?

lokikiller

lokikiller commented on Apr 21, 2015

@lokikiller
Author

I am in China, the environment is in my laboratory with some Blade servers using centos7. @fgrzadkowski

fgrzadkowski

fgrzadkowski commented on Apr 21, 2015

@fgrzadkowski
Contributor

Can you ping gcr.io? This seems similar to #6888

lokikiller

lokikiller commented on Apr 21, 2015

@lokikiller
Author

Thank you very much~ @fgrzadkowski

gl328518397

gl328518397 commented on Oct 11, 2016

@gl328518397

Error syncing pod, skipping: failed to "StartContainer" for "POD" with ErrImagePull: "image pull failed for gcr.io/google_containers/pause-amd64:3.0, this may be because there are no credentials on this request. details: (net/http: request canceled)"

这个问题怎么解决??

gl328518397

gl328518397 commented on Oct 11, 2016

@gl328518397

这是docker的日志:
Oct 11 16:13:52 mg1 docker-current: time="2016-10-11T16:13:52.267336913+08:00" level=error msg="Handler for GET /images/gcr.io/google_containers/pause-amd64:3.0/json returned error: No such image: gcr.io/google_containers/pause-amd64:3.0"
Oct 11 16:13:58 mg1 docker-current: time="2016-10-11T16:13:58.267522810+08:00" level=error msg="Handler for GET /images/gcr.io/google_containers/pause-amd64:3.0/json returned error: No such image: gcr.io/google_containers/pause-amd64:3.0"
Oct 11 16:14:06 mg1 docker-current: time="2016-10-11T16:14:06.267927214+08:00" level=error msg="Handler for GET /images/gcr.io/google_containers/pause-amd64:3.0/json returned error: No such image: gcr.io/google_containers/pause-amd64:3.0"
Oct 11 16:14:12 mg1 docker-current: time="2016-10-11T16:14:12.272394436+08:00" level=error msg="Handler for GET /images/gcr.io/google_containers/pause-amd64:3.0/json returned error: No such image: gcr.io/google_containers/pause-amd64:3.0"

pigletfly

pigletfly commented on Dec 13, 2016

@pigletfly
Member

@gl328518397 gcr.io is blocked by GFW

ledzep2

ledzep2 commented on Mar 29, 2017

@ledzep2

When you start kubelet you can specify an alternative pause image using --pod-infra-container-image=. I uploaded a copy of pause to Aliyun China registry sometime ago. You can use it if you want. The address is registry.aliyuncs.com/archon/pause-amd64:3.0

@gl328518397 @lokikiller

upccup

upccup commented on Jun 14, 2017

@upccup

@fgrzadkowski sorry to bother you

is there way wirh not create an infra container that is used to workaround some docker limitation?

fgrzadkowski

fgrzadkowski commented on Jun 14, 2017

@fgrzadkowski
Contributor

AFAIK it's not possible.

gbraad

gbraad commented on Dec 1, 2018

@gbraad

Just for information, the following discussion was related: https://stackoverflow.com/questions/29764612/failed-to-pull-images-from-dockerhub-in-kubernetes-0-15

The OP is in China and can therefore not pull from gcr.io (as this is hosted by Google), thanks to the GFW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportCategorizes issue or PR as a support question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gbraad@pigletfly@ledzep2@roberthbailey@lokikiller

        Issue actions

          Why pull from "gcr.io" registry when I create pod? · Issue #7090 · kubernetes/kubernetes