Configure registry authentication for builder service images
Mount an auth.json file into the flightctl-imagebuilder-worker container when your private mirror registry requires authentication for builder service images (podman, bootc-image-builder, and syft).
Before you begin
- You configured
serviceImagesin Configuring the image builder worker in disconnected environments to reference your mirrored registry. - Credentials for
<local-registry>.
global.imagePullSecretName and cluster imagePullSecrets authenticate pulls of the flightctl-imagebuilder-worker pod image only. They do not apply to the inner podman run commands that pull builder service images during an image build.
Registry authentication for source and destination images during a build is configured separately on Repository resources. This procedure covers authentication for the builder service images themselves.
Procedure
Results
sudo journalctl -u flightctl-imagebuilder-worker.service --no-pager -n 50does not reportunauthorizedorauthentication requirederrors when pulling from<local-registry>.- A test image build in the Red Hat Edge Manager web console completes without errors pulling
podman,bootc-image-builder, orsyftfrom the authenticated mirror.
For image builder workers on Red Hat OpenShift Container Platform, see Configuring registry authentication for builder service images in Installing Red Hat Edge Manager on Red Hat OpenShift Container Platform.