Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-796

(Doc) Shall not use tag latest in container image usage doc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 22.0.8
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      The current RHBK documentation uses the ":latest", which is wrong.  It is not supported by RHBK 

      ~~~
      FROM registry.redhat.io/rhbk/keycloak-rhel9:latest as builder#

      ...
      Enable health and metrics support
      ENV KC_HEALTH_ENABLED=true
      ENV KC_METRICS_ENABLED=true
      ...

      ~~~

       

      It generates the following error:

      _rror: initializing source docker://registry.redhat.io/rhbk/keycloak-rhel9:latest: reading manifest latest in registry.redhat.io/rhbk/keycloak-rhel9: unsupported: This repository does not use the "latest" tag to track the most recent image and must be pulled with an explicit version or image reference. For more information, see: https://access.redhat.com/articles/4301321_ 

      ~~~

      podman build . -t localhost/keycloak/mykeycloak-debug:1.0
      STEP 1/3: FROM registry.redhat.io/rhbk/keycloak-rhel9:latest AS builder
      Trying to pull registry.redhat.io/rhbk/keycloak-rhel9:latest...
      WARN[0000] Failed, retrying in 2s ... (1/3). Error: initializing source docker://registry.redhat.io/rhbk/keycloak-rhel9:latest: reading manifest latest in registry.redhat.io/rhbk/keycloak-rhel9: unsupported: This repository does not use the "latest" tag to track the most recent image and must be pulled with an explicit version or image reference. For more information, see: https://access.redhat.com/articles/4301321 

      ~~~

       

      The way to fix it is to use the proper appropriate tag such as:

      ~~~

      FROM registry.redhat.io/rhbk/keycloak-rhel9:22-7 as builder

       

      ....

      .... 
      ["/opt/keycloak/bin/kc.sh"]

      ~~~

       

       

       

       

              aschwart@redhat.com Alexander Schwartz
              rhn-support-orivat Olivier Rivat
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: