Bug 2006656
| Summary: | `oc image mirror/adm catalog mirror` should read the auth file of podman | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Jian Zhang <jiazha> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED DUPLICATE | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.9 | CC: | aos-bugs, fkrepins, jokerman, mfojtik |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-09-22 11:22:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jian Zhang
2021-09-22 06:46:05 UTC
this can be work around with > -a, --registry-config='': Path to your registry credentials (defaults to ~/.docker/config.json) and this is getting fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1982498; closing as a duplicate *** This bug has been marked as a duplicate of bug 1982498 *** + workaround with podman login, which might be easier to work with
> --authfile string path of the authentication file. Use REGISTRY_AUTH_FILE environment variable to override
> -a, --registry-config='': Path to your registry credentials (defaults to ~/.docker/config.json)
Yes, thanks! But, my key concern is that we were recommended to use the podman, especially on RHEL8, there is no Docker in fact, why still use this `~/.docker/config.json` as the default auth file?
> and this is getting fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1982498; closing as a duplicate
Ok, get it, thanks!
We can't switch it instantly for compatibility reasons, we have to deprecate this over few releases. But it will be possible to set this behaviour with env variable that we will introduce (you can also use the podman env variable at the moment). and yes this behaviour is unfortunate |