podman-desktop icon indicating copy to clipboard operation
podman-desktop copied to clipboard

Compose fails to use registry credentials

Open birla opened this issue 1 year ago • 4 comments

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

  1. Install Podman Desktop and dependencies.
  2. Setup Compose extension (system-wide) using docker compose.
  3. Login into a private container registry using either podman login or using the Podman desktop UI.
  4. Verify that connection to the private registry is working by pulling an image using podman pull or the Podman desktop UI.
  5. 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

birla avatar Apr 16 '24 12:04 birla