-
Story
-
Resolution: Done
-
Major
-
DO188 - RHOSCP4.12-en-2-20230607
-
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: