Custom build fail with error message 'x509: certificate signed by unknown authority' in OpenShift

Solution Verified - Updated -

Issue

  • Build using dockerfile strategy is failing.
  • Build fails with following error message even though image stream can be created and the image can be pulled from registry.
Step 1/6 : FROM httpd@sha256:246fed9aa9be7aaba1e04d9146be7a3776c9a40b5cfb3242d3427f79edee37db
Trying to pull repository registry.access.redhat.com/httpd ...
Trying to pull repository registry.access.redhat.com/httpd ...
Trying to pull repository docker.io/library/httpd ...
error: build error: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority

Environment

  • Openshift Container Platform 3.9

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