S2I builds are failing with `error: build error: key https://example.redhat.com contains http[s]:// prefix`

Solution Verified - Updated -

Issue

  • Cannot run S2I builds after upgrading to Red Hat OpenShift Container Platform (RHOCP) 4.9.
  • S2I builds are failing with the following error:
Generating dockerfile with builder image example.redhat.com/my-container/tool-s2i-java-nodejs:v1
error: build error: key https://example.redhat.com contains http[s]:// prefix

Environment

  • Red Hat OpenShift Container Platform
    • 4.9, 4.10

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