chore(deps): update Docker client SDK to v29#10202
Merged
DmitriyLewen merged 2 commits intoFeb 18, 2026
aquasecurity:mainaquasecurity/trivy:mainfrom
DmitriyLewen:update-docker-client-v29Copy head branch name to clipboard
Merged
chore(deps): update Docker client SDK to v29#10202DmitriyLewen merged 2 commits intoaquasecurity:mainaquasecurity/trivy:mainfrom DmitriyLewen:update-docker-client-v29Copy head branch name to clipboard
DmitriyLewen merged 2 commits into
aquasecurity:mainaquasecurity/trivy:mainfrom
DmitriyLewen:update-docker-client-v29Copy head branch name to clipboard
Conversation
Update from github.com/docker/docker v28 to github.com/moby/moby v29. Key changes: - Use new modular imports: github.com/moby/moby/client, github.com/moby/moby/api - Replace deprecated NewClientWithOpts() with New() - Update ImageSave/ImageLoad/ImageTag/ImagePush/ImageRemove API signatures - Remove deprecated fields from InspectResponse (Container, DockerVersion, ContainerConfig) - Update RootFS type to image.RootFS
Remove DockerVersion from expected values in Docker Engine tests (field no longer returned by API). Keep Container and DockerVersion for Registry tests (values come from image tarball, not API).
DmitriyLewen
marked this pull request as ready for review
February 17, 2026 10:40
knqyf263
approved these changes
Feb 17, 2026
This was referenced Apr 7, 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.
Description
Update Docker client SDK from
github.com/docker/dockerv28 togithub.com/moby/mobyv29.Starting with Docker Engine v29, the Go module path has changed from
github.com/docker/dockerto modular packages:github.com/moby/moby/clientgithub.com/moby/moby/apiChanges
Import path migration
github.com/docker/docker/client→github.com/moby/moby/clientgithub.com/docker/docker/api/types/image→github.com/moby/moby/api/types/imagegithub.com/docker/docker/api/types/registry→github.com/moby/moby/api/types/registryAPI changes
NewClientWithOpts()withNew()WithAPIVersionNegotiation()(now enabled by default)ImageSave,ImageLoad,ImageInspect,ImageHistoryto use new result wrapper typesImageTag,ImageRemove,ImagePushto use option structsInspectResponse:Container,ContainerConfig,DockerVersionRootFStype fromapi/typestoapi/types/imageCompatibility
Files using
testcontainers-goretaingithub.com/docker/docker/api/types/containerimports for compatibility, as testcontainers-go has not yet migrated to the new module path (seetestcontainers/testcontainers-go#3496).
References
WithAPIVersionNegotiationImageTag,ImageRemove,ImageSearch, etc.ImageSave,ImageLoad,ImageInspect,ImageHistoryInspectResponseRootFStoapi/types/imageChecklist