Container image build is failing with authentication issue while using podman
Issue
- Facing authentication issue while trying to build container image even though the user building the image is loged in to registry.
[root@master-0 ~]# podman build /home/user/dockerfile
STEP 1: FROM registry.redhat.io/rhscl/httpd-24-rhel7 AS base
Error: error creating build container: Error initializing source docker://registry.redhat.io/rhscl/httpd-24-rhel7:latest: 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
Environment
- Red Hat Enterprise Linux 7
- Podman 1.6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.