Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-1603

DO188-79: Ch03s01 : scenarios for multiple registries and registries.conf

XMLWordPrintable

    • 3
    • en-US (English)
    • AppDev Sprint Mar6 - Mar20, AppDev Sprint Mar21 - Apr3

      URL: https://rol.redhat.com/rol/app/courses/do188-4.10/pages/ch03
      Reporter RHNID: ctiwary@redhat.com
      Section: 1 - Chapter 3. Container Images
      Language: en-US (English)
      Workaround:

      Description: In section 3.1 of DO188, it talks about the /etc/containers/registries.conf file, which is all well and good.

      However, it doesn't talk about the ~/.config/containers/registries.conf file. I believe it should. While creating content for the class I'm teaching this fall, I've included this language:

      If the ~/.config/containers/registries.conf file exists, it overrides the settings in the /etc/containers/registries.conf file.

      Since each user accesses registries separately from other users, it is common to copy /etc/containers/registries.conf into the ~/.config/containers/ directory and then modify that user's copy to reflect the registries they wish to use.

      ------

      It also doesn't talk about what happens when Podman finds an image in multiple registries. This, too, should be discussed as it does not simply pull the first container image it finds (I think older versions of Podman do it that way).

      Again, my language (and example which, by the way, works the same way in the RHALP lab environment):

      Also, if a command such as python pull ubi8-python-39 is used, Podman will search all the registries in the working registries.conf file and present an interactive menu as to which one to use if the container image is found in more than one. Use the up and down arrow keys to choose a registry and Enter to select:

              rht-eramirez Eduardo Ramirez
              chetan-rhls Chetan Tiwary
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: