-
Notifications
You must be signed in to change notification settings - Fork 548
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
crane: auth get doesn't work with default keychain on Mac M1 + Podman #1976
Comments
Looking at the code, the default keychain looks for credential into (in order):
1 and 2 are Docker related, 3 is intended as explicit override by the user and 4 doesn't work because Podman login docs, however, state that:
It seems like option 4 should consider the host OS. |
Omg, I just independently wrote the same fix 🤦 |
@jonjohnsonjr @imjasonh I am pinging you as top contributors. What do you think of this fix? |
This issue is stale because it has been open for 90 days with no |
Describe the bug
On a Mac M1 laptop with Podman (running through Podman Machine),
crane auth get <registry>
fails withcredentials not found in native keychain
even if podman itself is successfully logged into the same registry.Credentials are correctly stored in
$HOME/.config/containers/auth.json
To Reproduce
podman login <registry>
crane auth get <registry>
Expected behavior
Crane should return the expected output for
crane auth get
: a JSON containing the credentials, like:Additional context
crane version
:0.19.1
docker.io
,ghcr.io
,quay.io
The text was updated successfully, but these errors were encountered: