Bug 1404957 - [RFE] Configurable default docker registry used by oc new-app
Summary: [RFE] Configurable default docker registry used by oc new-app
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 3.3.0
Hardware: x86_64
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: Xiaoli Tian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-15 08:38 UTC by Kenjiro Nakayama
Modified: 2021-09-09 12:02 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-12 13:54:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1398330 0 low CLOSED oc new-app always returns "Internal error occurred" when it failed to find imageStream in disconnected environment 2021-09-09 12:00:46 UTC

Internal Links: 1398330

Description Kenjiro Nakayama 2016-12-15 08:38:34 UTC
1. Proposed title of this feature request

- [RFE] Configurable default docker registry used by oc new-app

3. What is the nature and description of the request?

- When oc new-app <GIT> and failed to search image in local imageStream nor registry.redhat.com, it will try to access docker.io to find it. We would like to configure the default registry docker.io with some other registries.

4. Why does the customer need this? (List the business requirements here)

- The customer uses OpenShift on disconnected environment and new-app always lookup docker.io and produces error as "no such host". They want to stop it.

5. How would the customer like to achieve this? (List the functional requirements here)

- Disable to lookup docker.io by default or configure to lookup other registries.

Comment 5 Cesar Wong 2017-08-18 12:04:09 UTC
Assigned to Michal, who should be able to answer about the registry lookup.

Comment 6 Michal Fojtik 2017-08-18 12:56:59 UTC
In more recent version of OpenShift (>3.5) we already added `imagePolicyConfig.AllowedRegistriesForImport` option in master config which can be used to whitelist registries for image import. The 'docker.io' is whitelisted by default, but by removing it from this list your should get nicer error message when trying to new-app using docker.io saying that importing the image is not allowed.

Comment 8 Eric Rich 2018-03-12 13:54:36 UTC
This bug has been identified as a dated (created more than 3 months ago) bug. 
This bug has been triaged (has a trello card linked to it), or reviewed by Engineering/PM and has been put into the product backlog, 
however this bug has not been slated for a currently planned release (3.9, 3.10 or 3.11), which cover our releases for the rest of the calendar year. 

As a result of this bugs age, state on the current roadmap and PM Score (being below 70), this bug is being Closed - Differed, 
as it is currently not part of the products immediate priorities.

Please see: https://docs.google.com/document/d/1zdqF4rB3ea8GmVIZ7qWCVYUaQ7-EexUrQEF0MTwdDkw/edit for more details.


Note You need to log in before you can comment on or make changes to this bug.