[SRVLOGIC-1069] Migrate Docker APIs v28 to Moby v1.55.0 and Moby Client v0.5.0#20
Merged
Merged
Conversation
Contributor
Author
|
I need to enable CI in this branch on Monday. |
535dcaf to
35f1f92
Compare
…nt v0.5.0 Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
35f1f92 to
ee6d5dd
Compare
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
Migrates from
github.com/docker/docker v28.5.2+incompatibletogithub.com/moby/moby/client v0.5.0andgithub.com/moby/moby/api v1.55.0to address critical CVEs.Security Fixes
Packages Migrated
Key Changes
Same migration as applied to kie-tools repository (PR #385).
API Updates
client.NewClientWithOpts()→client.New()client.ContainerCreateOptionsstructResultobjects with.Itemsfieldnat.Port→network.Port(usenetwork.MustParsePort())string→netip.Addr(usenetip.MustParseAddr())filters.NewArgs()→client.Filters{}.Errorand.ResultchannelsContainerInspectResultwith.Containerfieldclient.IsErrNotFound()→errdefs.IsNotFound()io.ReadCloserwith.Wait()methodFiles Modified (13 total)
container-builder:
go.mod- Updated dependenciescommon/docker.go- Refactored Docker client operationscommon/registry_docker.go- Updated container/registry operationscommon/registry.go- Updated importsbuilder/kaniko_vanilla.go- Updated Kaniko buildercleaner/docker_integration_test_suite.go- Enhanced test cleanupcli:
go.mod- Updated dependenciespkg/common/containers.go- Refactored Docker client operationspkg/common/containers_test.go- Updated test mockspkg/common/checks.go- Updated Docker client checksTest Results
container-builder
cli
Breaking Changes
None - all functionality preserved, only internal API calls updated.
Compatibility
Notes
🤖 Generated with Claude Code