Support containers with name:tag@digest

Solution Verified - Updated -

Issue

  • s2i builds referring to containers by both tags and SGA256 digest fail. For example:

    STEP 1: FROM nginx: alpine @ sha256: 111111111111111111111111111111111111111111111111111111111111111111111111111
    error: build error: error creating build container: The following failures happened while trying to pull image specified by "nginx: alpine @ sha256: 111111111111111111111111111111111111111111111111111111111111111111111111111" based on search registries in /etc/containers/:
    "Localhost / nginx: Alpine @ sha256: 111111111111111111111111111111111111111111111111111111111111111111111111111": error parsing attempted imageName "docker: // localhost / nginx: Alpine @ sha256: 111111111111111111111111111111111111111111111111111111111111111111111111111" Docker references with Both a tag and digest are currently not supported
    "Docker.io/library/nginx:alpine@sha256:111111111111111111111111111111111111111111111111111111111111111111111111111": error parsing attempted imageName "docker: //docker.io/library/nginx: Alpine @ sha256: 111111111111111111111111111111111111111111111111111111111111111111111111111" Docker references with Both a tag and digest are currently not supported
    
  • RHOCP 4.7 says it uses CRI-O 1.20 which should have https://github.com/cri-o/cri-o/pull/3060 merged back in 1.17.

  • What's the current status of support for this feature or is there any plan to implement it?
  • It was possible in Docker, apparently users used this feature and expect compatibility in migration from Docker to current container engine.
  • This incompatibility prevents enterprise users migrating from EOL approaching RHOCP 3.11 to RHOCP 4.x

Environment

  • Red Hat OpenShift Container Platform(RHOCP)
    • 4.7 to 4.10
  • CRI-O

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