Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image-mode-basics: Using 9.4 tag in containerfile causes an issue #600

Open
nzwulfin opened this issue Dec 9, 2024 · 1 comment · May be fixed by #601
Open

image-mode-basics: Using 9.4 tag in containerfile causes an issue #600

nzwulfin opened this issue Dec 9, 2024 · 1 comment · May be fixed by #601

Comments

@nzwulfin
Copy link
Collaborator

nzwulfin commented Dec 9, 2024

Reported by Bram Mertens:

There seems to be a recent issue with https://www.redhat.com/en/introduction-to-image-mode-for-red-hat-enterprise-linux-interactive-lab
the base container file has been updated to pull the 9.4 RHEL image where if memory serves me right it was just hrel-bootc before.
Now building the container fails:

root@rhel:~# podman build -t rhel.0ld8dpunfpug.instruqt.io:5000/test-bootc .
STEP 1/4: FROM registry.redhat.io/rhel9/rhel-bootc:9.4
Trying to pull registry.redhat.io/rhel9/rhel-bootc:9.4...
Error: creating build container: initializing source docker://registry.redhat.io/rhel9/rhel-bootc:9.4: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication

If I remove the :9.4 from the FROM line I can build the container as expected

@nzwulfin
Copy link
Collaborator Author

nzwulfin commented Dec 9, 2024

setup script is pulling latest version, which is now 9.5. The mismatch in the containerfile causes a fresh pull, the login from the setup script doesn't carry over, so pull fails.

@nzwulfin nzwulfin linked a pull request Dec 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant