Skip to content

Conversation

@mike-sul
Copy link
Contributor

@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 mike-sul requested a review from doanac January 5, 2026 13:09
Copy link
Member

@StealthyCoder StealthyCoder left a comment

Choose a reason for hiding this comment

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

Nice find.

@mike-sul
Copy link
Contributor Author

mike-sul commented Jan 5, 2026

@doanac This PR is required to make this change in ci-scripts foundriesio/ci-scripts#405 work for images store in the dockerhub.

@mike-sul
Copy link
Contributor Author

mike-sul commented Jan 5, 2026

I've forgotten that I moved the ci-scripts to composectl usage :), so this change is not really needed (however it won't harm). Instead we need this foundriesio/composeapp#113.

@mike-sul mike-sul merged commit 63e7c4e into master Jan 7, 2026
@mike-sul mike-sul deleted the fix-auth-to-dockerhub branch January 7, 2026 15:18
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