podman run does not honour --authfile. Unable to pull and run in one step for private registry #3730
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
--authfile switch / REGISTRY_AUTH_FILE / file in /etc/containers/auth.json does not seem to work for
podman run
.Steps to reproduce the issue:
podman login --authfile /etc/containers/auth.json my-repo
podman pull my-repo/image:tag
unauthorized: access to the requested resource is not authorized
podman run my-repo/image:tag
unauthorized: access to the requested resource is not authorized
export REGISTRY_AUTH_FILE=/etc/containers/auth.json
podman run my-repo/image:tag
unauthorized: access to the requested resource is not authorized
podman pull my-repo/image:tag
unauthorized: access to the requested resource is not authorized
unauthorized: access to the requested resource is not authorized
THIS WORKS!!
Describe the results you received:
described above.
Describe the results you expected:
podman run
should honour '--authfile' optionAdditional information you deem important (e.g. issue happens only occasionally):
In registries.conf i have registries.search block replaced to point to my company private repo. This happens when i try to run container with fqn like my-repo/image:tag or just image:tag.
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
virtualbox.
The text was updated successfully, but these errors were encountered: