Skip to content

imagestream is always using the registry ip instead of registry hostname #6283

@thincal

Description

@thincal

If I push an image for example registry.example.com:5000/default/hello-openshift to the integrated registry, at the same time an imagestream will be created automatically, but oc get is shows:

NAME              DOCKER REPO                                   TAGS      UPDATED
hello-openshift   172.30.117.244:5000/default/hello-openshift   latest    7 minutes ago

When I create a pod referring the image registry.example.com:5000/default/hello-openshift, it will report the error:

Failed to pull image "registry.example.com:5000/default/hello-openshift:latest": image pull failed for registry.example.com:5000/default/hello-openshift:latest, this may be because there are no credentials on this request. details: (Error: image default/hello-openshift:latest not found) 

So what the reason to use the registry ip in the imagestream instead of the registry hostname even if I push the image formatted like as hostname:port/project/imagename ? or is this the bug simply ?

This issue is confusing me several days about the image pull failure when creating the pod, after using the registry-ip:port/project/imagename pod is created successfully.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions