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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.