mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
0eafaeb043
Docker Compose and Buildx proxy through the Docker daemon, which sends a User-Agent starting with "docker/<version>" rather than the "Docker-Client/<version>" string sent by direct Docker CLI pulls. This caused compose/buildx pulls to skip the 401 challenge on registries with mixed anonymous/authenticated access policies, resulting in 'unauthorized' errors. Add strings.HasPrefix(ua, "docker/") alongside the existing Docker-Client check so daemon-proxied requests from any upstream tool (compose, buildx, etc.) are handled correctly. Fixes #3991