oc new-app doesn't honor local docker configuration

Solution In Progress - Updated -

Issue

  • oc new-app command doesn't honor docker configuration regarding registries. The OCP cluster points to an external Red Hat standalone Registry. And the Docker daemon is configured that way, to point to the external Registry where the docker configuration is as below :
BLOCK_REGISTRY='--block-registry registry.access.redhat.com --block-registry docker.io'

However the new-app command still goes to docker.io:

#oc new-app openshift/hello-openshift:latest
W0818 10:50:40.891868   81558 dockerimagelookup.go:220] Docker registry lookup failed: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
error: no match for "openshift/hello-openshift:latest"

Environment

  • Openshift Container Platform
    • 3.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content