Bug 1663451
Summary: | oc new-app -S in <nonexistentimage> a disconnected environment searches in registry-1.docker.io | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Joel Rosental R. <jrosenta> | |
Component: | Build | Assignee: | Ben Parees <bparees> | |
Status: | CLOSED WONTFIX | QA Contact: | wewang <wewang> | |
Severity: | low | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.11.0 | CC: | aos-bugs, wzheng | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1974754 (view as bug list) | Environment: | ||
Last Closed: | 2019-02-21 22:39:32 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1974754 |
Description
Joel Rosental R.
2019-01-04 11:35:46 UTC
> It looks like it always try to look in registry-1.docker.io even if that registry is not listed on any docker config file, e.g: /etc/containers/registries.conf or /etc/sysconfig/docker: The decision about where to try to look for the image is part of the openshift server itself, it's not configurable (docker.io is always the default for image names which do not specify a registry): https://github.com/openshift/origin/blob/d45151824821195c9d3db7e5d2da0a1c982a614c/pkg/image/api/helper.go#L23-L36 And it's not controllable from the client side because we're making a request to the server to lookup the image for us, we have no way of knowing whether the server can reach docker.io or not (and in fact the server itself may not have a way of knowing). The previous work on this bug lead to the current state you see today (a warning message being reported): https://bugzilla.redhat.com/show_bug.cgi?id=1398330 https://bugzilla.redhat.com/show_bug.cgi?id=1378647 I don't think there is any further worth doing here (not even sure what's reasonably possible). |