Pulling images from external registries in a pod definition

Solution Verified - Updated -

Issue

  • deployments fail
  • atomic-openshift-node entries similar to

    atomic-openshift-node[7366]: W1019 11:36:23.059889    7366 kubelet_pods.go:746] Unable to retrieve pull secret test/auth for test/apache due to secrets "auth" not found.  The image pull may not succeed.
    
  • dockerd-current entries similar to

    dockerd-current[27825]: time="ts" level=error msg="Attempting next endpoint for pull after error: Get https://registry.com:5000/v2/<project>/<image>/manifests/18.07.0: no basic auth credentials"
    dockerd-current[27825]: time="ts" level=debug msg="Trying to pull registry.com:5000/<project>/<image> from https://registry.com:5000 v1"
    dockerd-current[27825]: time="ts" level=debug msg="hostDir: /etc/docker/certs.d/registry.com:5000"
    dockerd-current[27825]: time="ts" level=debug msg="attempting v1 ping for registry endpoint https://registry.com:5000/v1/"
    

Environment

  • OpenShift Container Platform 3.7, 3.9, 3.10
  • performing oc create -f <pod definition>.yaml
  • external docker registry

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.