Login with buildah too to allow registry access with buildah
buildah login and podman login with root do not share same
authfile, buildah uses /run/containers/0/auth.json while
podman uses /run/user/0/containers/auth.json resulted from
$XDG_RUNTIME_DIR.
To ensure both podman and buildah can access the configured
registry, run login command with both.
It's mainly needed as container images are being pushed
with tripleoclient using sudo buildah push and buildah creds
are not setup.
Reviewed: https:/ /review. opendev. org/739415 /git.openstack. org/cgit/ openstack/ tripleo- ansible/ commit/ ?id=067a315df92 248f83103e5b4b7 ec8424c9b5d6a9
Committed: https:/
Submitter: Zuul
Branch: master
commit 067a315df92248f 83103e5b4b7ec84 24c9b5d6a9
Author: yatinkarel <email address hidden>
Date: Mon Jul 6 12:21:24 2020 +0530
Login with buildah too to allow registry access with buildah
buildah login and podman login with root do not share same /0/auth. json while 0/containers/ auth.json resulted from RUNTIME_ DIR.
authfile, buildah uses /run/containers
podman uses /run/user/
$XDG_
To ensure both podman and buildah can access the configured
registry, run login command with both.
It's mainly needed as container images are being pushed
with tripleoclient using sudo buildah push and buildah creds
are not setup.
Related-Bug: #1886555 08f7060f31cc9ff 378e97120bb
Change-Id: I3d38d406e9f630