Skip to content

Conversation

@mike-sul
Copy link
Collaborator

@mike-sul mike-sul commented Jan 5, 2026

If a given reference refers to an image hosted in the dockerhub, then the reference hostname must be normalized to the full dockerhub hostname URL before searching auth material in the config file since docker login docker.io sets a record for https://index.docker.io/v1/ in the docker's config file.

If a given reference refers to an image hosted in the dockerhub, then
the reference hostname must be normalized to the full dockerhub hostname
URL before searching auth material in the config file since
`docker login docker.io` sets a record for
`https://index.docker.io/v1/` in the docker's config file.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul
Copy link
Collaborator Author

mike-sul commented Jan 5, 2026

It fixes the issue with publishing an app that includes an image hosted in the dockerhub, e.g.

 cat docker-compose.yml 
services:
  app:
    image: foundries/minimal:v1.0

@mike-sul
Copy link
Collaborator Author

mike-sul commented Jan 5, 2026

This https://ci.foundries.io/projects/msul-test/lmp/builds/294/publish-compose-apps/artifacts/console.log is the CI run that uses this PR's version of composectl.

A fix that enables pulling compose apps hosted in the dockerhub.
Specifically, this change allows running
`docker pull | check docker.io/<repo>/<app>@sha256:<>`

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul
Copy link
Collaborator Author

mike-sul commented Jan 7, 2026

The second commit 7803969 allows pulling apps from the dockerhub, e.g.:

https://github.com/foundriesio/composeapp/pull/113/commits/78039692be22e7954d3767b06965e92563879088

Copy link
Member

@doanac doanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mike-sul mike-sul merged commit b516208 into main Jan 7, 2026
2 checks passed
@mike-sul mike-sul deleted the fix-auth-to-dockerhub branch January 7, 2026 14:53
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.

4 participants