Skip to content

fix(libstack/swarm): change registry match mechanism to path level - #13212

Open
Audifire wants to merge 2 commits into
portainer:developfrom
Audifire:develop
Open

Audifire wants to merge 2 commits into
portainer:developfrom
Audifire:develop

Conversation

@Audifire

Copy link
Copy Markdown

Probably related to this: #10699 (comment)

Description:

When configured with multiple subpaths of the same registry but different credentials, the private images of a swarm stack are not pulled correctly since just the domain of the image is compared to the registry paths, and they would never match.

Here is an example of configured registries:
image

Changes:

  • Changed the match mechanism in the libstack/swarm package to try to match if the stored credentials registry path does match the image path. So if the stored credential registry path is contained in the image, it is the correct registry.

Before:
image

After:
image

I can remember that in a previous version of Portainer (a very long time ago), the deployment of stacks has been working very well. But after an update, the mechanism is broken.

If you have any questions, do not hesitate to ask. :)

@predlac

predlac commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

👀 tracking in BE-13089

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants