podman-desktop
podman-desktop copied to clipboard
Compose fails to use registry credentials
Bug description
Compose extension (which uses github.com/docker/compose) is not able to access registry credentials configured in podman.
Quick fix: pull all required images manually, using podman pull privateregistry.com/image:tag then run podman compose up and it works because the local image cache is seeded now.
Operating system
Windows 11
Installation Method
Installer from website/GitHub releases
Version
1.9.0
Steps to reproduce
- Install Podman Desktop and dependencies.
- Setup Compose extension (system-wide) using docker compose.
- Login into a private container registry using either
podman loginor using the Podman desktop UI. - Verify that connection to the private registry is working by pulling an image using
podman pullor the Podman desktop UI. - Try to spin up a docker compose file which relies on any image from the private container registry, not already available locally.
podman compose up
Relevant log output
Error response from daemon: {"message":"unable to retrieve auth token: invalid username/password: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information."}
Error: executing C:\Users\username\AppData\Local\Microsoft\WindowsApps\docker-compose.exe -f .\docker-compose.yml up -d: exit status 18
Additional context
No response