fix: remove v1-only limitation from Build example#102
Merged
Conversation
The v2 registry URL normalization is now handled in kestra core (kestra-io/kestra#15141), so Docker Hub v2 endpoints work correctly. Fixes #66
Contributor
📦 Artifacts
🧪 Java Unit Tests
🔁 Unreleased Commits10 commits since
|
Malaydewangan09
approved these changes
Mar 19, 2026
The registry URL from credentials (e.g. https://registry-1.docker.io/v2/) was being prepended as-is to the image name, causing docker-java's NameParser to reject it with "RepositoryName shouldn't contain a scheme". Strip the scheme and path to extract the bare hostname, and skip prepending entirely for Docker Hub registries since they are the default.
This was referenced Mar 23, 2026
This was referenced Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
# for now only V1 is supportedcomment from the Build task's DockerHub exampleDockerService) is in fix: normalize Docker registry URLs for v2 Bearer token support kestra#15141Fixes #66
Test plan
registry: https://registry-1.docker.io/v2/works for Build+push after fix: normalize Docker registry URLs for v2 Bearer token support kestra#15141 is merged